Re: [ansible-project] Enabling delegate_to on include_role via block

2019-05-04 Thread Matt Martz
This is expected. There is documentation to this effect at https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#dynamic-includes-and-attribute-inheritance As of Ansible 2.7 see the "apply" argument to include_tasks and include_role to do what you want. On Sat, May 4,

[ansible-project] Re: ERROR! Syntax Error while loading YAML. mapping values are not allowed in this context

2019-05-04 Thread Tony Chia
You can check if you have a valid syntax at http://www.yamllint.com/ In YAML, sequences must have a dash followed by a space. On Friday, May 3, 2019 at 2:38:51 AM UTC-7, op...@netexpress.de wrote: > > I have the following playbook: > --- > - hosts: debian > order: sorted > tasks: >

[ansible-project] Re: leftover on AMI after using Ansible with Packer

2019-05-04 Thread Tony Chia
That folder is a temporally folder used by ansible. See the following for more details https://docs.ansible.com/ansible/2.4/intro_configuration.html local_tmp New in version 2.1. When Ansible gets ready to send a module to

[ansible-project] Re: Syntax Error with postgresql_query module

2019-05-04 Thread magnani95
*SOLUTION FOUND*Sorry I'm very stupid and I shouldn't work at night. The problem is that postgresql_query is new in version 2.8 in development, and I have 2.7.10 Thank you for your time Il giorno venerdì 3 maggio 2019 21:52:58 UTC+2, magn...@gmail.com ha scritto: > > Hi, I have to create and

Re: [ansible-project] Syntax Error with postgresql_query module

2019-05-04 Thread magnani95
The output is: ansible-playbook 2.7.10 > config file = /etc/ansible/ansible.cfg > configured module search path = > ['/home/andrea/.ansible/plugins/modules', > '/usr/share/ansible/plugins/modules'] > ansible python module location = /usr/lib/python3.7/site-packages/ansible > executable

Re: [ansible-project] Merge/Combine Inventory Variables with Defaults rather than override

2019-05-04 Thread Max Bigras
Hi christoph, Was very excited to see your solution to this problem. I've been struggling to find a way to work around ansible replacing dictionaries. Are you still using this approach? How has it been working for you? Have you made any changes? On Wednesday, June 6, 2018 at 7:00:46 AM UTC-7,

[ansible-project] Re: Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
Analog for tags it turns out that: - block: - include_role: name: myrole tags: mytag will apply the tag to tasks inside the role, its dependencies, roles that it includes/imports. Is this too a feature? The block trick also works for include_tasks and import_tasks

[ansible-project] Re: Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
By delegating the included role I mean delegating the tasks inside the role and any more included/imported by that role or even tasks of roles the role depends on (I tested this on ansible 2.7.10). -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
Hi, I noticed that while: - include_role: name: myrole delegate_to: somehost will not delegate the included role, this will: - block: - include_role: name: myrole delegate_to: somehost Is this by design, i.e. I may rely on it, or is this a fluke