[ansible-project] Ansible *2.4.1* RC1 is ready for testing

2017-10-11 Thread Toshio Kuratomi
And of course, I made a mistake when sending the announcement. The Subject line should read 2.4.1 RC1, not 2.4.0 RC1. -Toshio On Wednesday, October 11, 2017 at 10:34:16 PM UTC-7, Toshio Kuratomi wrote: > > Hi all, we're happy to announce that RC1 for 2.4.1 is now available for > testing. >

[ansible-project] Re: Is there a way to run tasks that have ALL of the tasks given as parameters to ansible-playbook?

2017-10-11 Thread Behrang Saeedzadeh
> I would just give tasks that have both foo and bar as tags a third tag that will allow those tasks to be run Unfortunately this won't work for me. I have multiple roles imported in my playbook: - { role: a, tags: ["a"] } - { role: b, tags: ["b"] } - { role: b, tags: ["c"] } -

[ansible-project] Ansible 2.4.0 RC1 is ready for testing

2017-10-11 Thread Toshio Kuratomi
Hi all, we're happy to announce that RC1 for 2.4.1 is now available for testing. How do you get it? -- The tar.gz of the release can be found here: https://releases.ansible.com/ansible/ansible-2.4.1.0-0.3.rc1.tar.gz SHA256:

[ansible-project] Re: Is there a way to run tasks that have ALL of the tasks given as parameters to ansible-playbook?

2017-10-11 Thread alanpassel7
I don't think so. In this case, I would just give tasks that have both foo and bar as tags a third tag that will allow those tasks to be run. It's a little cumbersome, but it would work. However, as far as I know, there is no AND type of operator for tags. On Thursday, October 12, 2017 at

Re: [ansible-project] Is there a way to run tasks that have ALL of the tasks given as parameters to ansible-playbook?

2017-10-11 Thread Douglas Duckworth
Good question I have also wondered if you can run tasks with all tags. Eg -t all. On Oct 11, 2017 9:04 PM, "Behrang Saeedzadeh" wrote: > For example, let's pretend we have these tasks: > > - name: Task 1 > tags: > - foo > - bar > > - name: Task 2 > tags: >

[ansible-project] Vault and "dictionaries" - bug or feature request?

2017-10-11 Thread Dan Linder
I've have a dictionary variable setup that has accounts and passwords: password_list: - { name: "user1", password: "user1pwd" } - { name: "user2", password: "user2pwd" } - { name: "user3", password: "user3pwd" } This

[ansible-project] Is there a way to run tasks that have ALL of the tasks given as parameters to ansible-playbook?

2017-10-11 Thread Behrang Saeedzadeh
For example, let's pretend we have these tasks: - name: Task 1 tags: - foo - bar - name: Task 2 tags: - foo - name: Task 3 tags: - bar Is there a way to only execute tasks that have both of *foo* and bar *tags*? That's, only execute* Task 1*? -- You received this

[ansible-project] Re: win_shell - What's the proper way to use a command with a flag in ansible playbook or adhoc command.

2017-10-11 Thread marcalfa1
Jordan, Thanks a million. I was able to get the output I'm looking for. Now that have the list of files in my C:\Temp, how do I fetch those files to my ansible controller host? Here's an example I have so far but failing at one section. *- hosts: all gather_facts: yes

[ansible-project] Does ini_file work if directory does not exist?

2017-10-11 Thread Jay Jahns
Example: Need to write ini file to /path/1/file.ini and /path/1 does not exist. if I use create=yes flag, will this directory be created? If not, I have to account for it beforehand, but would be very slick if the module supported it. Thanks. -- You received this message because you are

[ansible-project] Re: win_shell - What's the proper way to use a command with a flag in ansible playbook or adhoc command.

2017-10-11 Thread Jordan Borean
Hi The win_shell module actually executes a command in the PowerShell where dir is an alias for Get-ChildItem. Get-ChildItem (and other PS cmdlets) do not have parameters or switches in the form of /* which is why you are getting this error. You can either change your task to use the

[ansible-project] win_shell - What's the proper way to use a command with a flag in ansible playbook or adhoc command.

2017-10-11 Thread marcalfa1
Trying to "dir /b c:\Temp" using a playbook or via adhoc and getting the error message below. It seems to have a problem with "/b" in "Dir /b C:\Temp" *- hosts: all gather_facts: yes tasks: - win_shell: dir /b C:\Temp* FAILED! => {"changed": true, "cmd": "dir /b C:\\Temp",

[ansible-project] Re: Ansible Tower Install Fails

2017-10-11 Thread acain via Ansible Project
Hi Anfield, i had the same problem, i found out that the text editor i used used the wrong type of apostrophe around the passwords i had entered. if you copy the completely verticle apostrophe tick from one of the other variables and replace them it works just fine! hope this helps, Alex On

[ansible-project] Re: ansible get-url notworking

2017-10-11 Thread Daniel JD
It's not working for me. I get a 5xx Server error. Am Mittwoch, 11. Oktober 2017 07:55:25 UTC+2 schrieb Sri Valli: > > i am just executing below yml file > name: Download oracle-jdk8 > get_url: url={{ jdk_url }} dest={{jdk_archive_file}} mode=0755 > > > i am getting below error > > TASK

Re: [ansible-project] Exit playbook and return an error

2017-10-11 Thread Kai Stian Olstad
On 11.10.2017 11:16, 'Colm Mcnabola' via Ansible Project wrote: Is this possible to do the script locally and then still be able to connect to hosts in a later stage of the same playbook? for example task: - name: local run of script against inventory Yes, the play I posted has "-

Re: [ansible-project] Exit playbook and return an error

2017-10-11 Thread 'Colm Mcnabola' via Ansible Project
Is this possible to do the script locally and then still be able to connect to hosts in a later stage of the same playbook? for example task: - name: local run of script against inventory On Tue, Oct 10, 2017 at 5:34 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On

Re: [ansible-project] Checking Success/Failure with Vmware Ansible modules

2017-10-11 Thread Kai Stian Olstad
On 11.10.2017 00:37, Vijay Misra wrote: Hi , I have written few tests using ansible . basicall suspending a VM and then resuming again , taking snapshots etc.. I need to check success or failure of these operations. I am registering a vraibklle to capture the output as below and writing the