[ansible-project] ansible-galaxy and requirements.yml

2015-03-03 Thread George Shuklin
Hello. I'm learning Ansible and found that example on this page: http://docs.ansible.com/galaxy.html#the-ansible-galaxy-command-line-tool does not work. When I put inside of requirements.yml any yaml, ansible-galaxy trying to download pieces of yaml like it is a text file: $ head requirements.y

[ansible-project] How access variable from one playbook in the other playbook?

2015-03-16 Thread George Shuklin
Hello. I'm trying to set up application with database. My current (simplified) version looks like this: site.yml: - include db.yml - include app.yml db.yml - hosts: db - roles: foo.install_db app.yml - hosts: app - roles: bar.install_app In the group_var/db I have settings: db_address: '{{a

Re: [ansible-project] Ansible shell moudle

2018-01-25 Thread George Shuklin
try to prepend script path with echo and use 'register' option for further inspection. I think you may use some quirks with path/environment variables. On 01/25/2018 12:13 PM, Subrat Mahapatra wrote: Hi There, I am trying to execute a Predefined shell script on a remote server through Ansib

Re: [ansible-project] merge dictionary list in jinja2

2018-02-20 Thread George Shuklin
Try to use 'combine' filter: one: {foo: bar} two: {baz: bazbaz } three: '{{one|combine(two)}}' Result: three: {foo: bar, baz: bazbaz} On 02/20/2018 11:46 AM, 'deewon' via Ansible Project wrote: Hi all, I'm relatively new to using ansible and hoping someone can assist with some insight aroun

[ansible-project] handlers and include_role, import_role

2018-02-22 Thread George Shuklin
I've done research on behaviour of handlers together with include/import role. https://medium.com/@george.shuklin/include-role-import-role-and-handlers-in-ansible-b32a5386a555 Short excerpt: |import_role|: All handlers are in the same scope, inner handlers always win. |include_role|: Handle

Re: [ansible-project] RHEL VM creation from iso

2017-11-03 Thread George Shuklin
kickstart is a fragile approach. Use diskimage-builder to build a perfect image for your needs. On 03/11/17 12:05, Alastair Rogers wrote: I am currently looking at utilising ansible for our VM creation and initial OS setup. We have VMware vCenter hosting our VM’s and I am comfortable with VM c