Coder Social home page Coder Social logo

springerpe / concourse-ansible-resource Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 16.0 29 KB

Concourse resource type to run ansible playbooks

License: MIT License

Python 90.49% Shell 3.70% Dockerfile 5.81%
concourse concourse-resource concourse-ci-resource concourse-ci concourse-pipeline

concourse-ansible-resource's Issues

Playbook Not Found

Hi
I am trying use this resource type to execute my ansible playbook but always getting can not find playbook error.Is there any specific folder structure need to be followed?

Traceback (most recent call last):
File "/opt/resource/out", line 449, in
rcode = r.run(os.path.basename(file))
File "/opt/resource/resource.py", line 146, in run
rcode, response = self.update(self.workfolder, source, params)
File "/opt/resource/out", line 436, in update
config = self.configure(folder, source, params)
File "/opt/resource/out", line 389, in configure
raise ValueError(msg)
ValueError: Cannot find playbook file '/tmp/build/put/ansible-playbook/site.yml'

Thanks
Sasikanta

Cannot use ansible-galaxy

It would be nice if we could give a requirement file as option and get ansible-galaxy install requirements before ansible-playbook executes. This is the common way to use ansible-playbook.

Add git binary

It would be nice if image could add git binary so it is usable with ansible-galaxy to install requirements that are hosted in a git repository

Cannot use "extra_vars"

When trying to pass any extra_vars to the "put" step of my Ansible resource, I receive the following error:

Traceback (most recent call last):
  File "/opt/resource/out", line 449, in <module>
    rcode = r.run(os.path.basename(__file__))
  File "/opt/resource/resource.py", line 146, in run
    rcode, response = self.update(self.workfolder, source, params)
  File "/opt/resource/out", line 437, in update
    exitcode, stdout, stats = PlaybookCLI(config, self.logger).run()
  File "/opt/resource/out", line 122, in run
    variable_manager.extra_vars = load_extra_vars(loader=loader, options=extra_vars)
  File "/usr/lib/python2.7/site-packages/ansible/utils/vars.py", line 121, in load_extra_vars
    for extra_vars_opt in options.extra_vars:
AttributeError: 'dict' object has no attribute 'extra_vars'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.