[ansible-project] skipping does not show for lists

2019-03-14 Thread Jerome Yanga
Here are some background info. Ansible Version: 2.7.8 Created a file and folder structure with the commands below. TEMP="/data" mkdir -p $TEMP/dir{1,2} touch $TEMP/file{1,2}.txt touch $TEMP/file{3,4}.lst.txt touch $TEMP/dir{1,2}/file{1,2}.txt touch $TEMP/dir{1,2}/file{3,4}.lst.txt The resulting

[ansible-project] need to detect if a service/daemon is running or not

2016-04-22 Thread Jerome Yanga
I am trying to determine if iptables/firewalld is running or not. If the service/daemon is not running, I want to leave it that way. Otherwise, I would like to bounce it. Below is my attempt to perform this. If there is another/better way to do what I am trying to do, I am open to learn. :)

[ansible-project] need help in checking if a variable string is in an item string

2016-06-13 Thread Jerome Yanga
Here is what I have. vars/main.yml host_entries: - { srv_loc: 'ca', ip_addr: '10.1.1.1', host_aliases: 'ca-srv-01.example.com ca-srv-01' } - { srv_loc: 'ny', ip_addr: '10.2.1.1', host_aliases: 'ny-srv-01.example.com ny-srv-01' } - { srv_loc: 'co', ip_addr: '10.3.1.1', host_aliases:

[ansible-project] Re: need help in checking if a variable string is in an item string

2016-06-14 Thread Jerome Yanga
om&sa=D&sntz=1&usg=AFQjCNFDFlNv7ljk8P-xrOYpfaOZ-Ztwfg> ca-srv-01", "ip_addr": "10.1.1.1", "srv_loc": "ca"}, "skip_reason": "Conditional check failed", "skipped": true} Regards, j On Monday, June 13, 2016 at 10:50:10

[ansible-project] Re: need help in checking if a variable string is in an item string

2016-06-14 Thread Jerome Yanga
false, "item": {"host_aliases": "ca-srv-01.example.com ca-srv-01", "ip_addr": "10.1.1.1", "srv_loc": "ca"}, "skip_reason": "Conditional check failed", "skipped": true} Regards, j On Monday, June

Re: [ansible-project] need help in checking if a variable string is in an item string

2016-06-14 Thread Jerome Yanga
Thanks, Kai. You hit the nail on the head. If there is a doc on how to do this string manipulation, please share with me the URL. Regards, j On Tuesday, June 14, 2016 at 8:45:30 AM UTC-7, Kai Stian Olstad wrote: > > On 13. juni 2016 19:50, Jerome Yanga wrote: > > v

Re: [ansible-project] need help in checking if a variable string is in an item string

2016-06-14 Thread Jerome Yanga
Kai, Thanks. You have been very helpful. Regards, j On Tuesday, June 14, 2016 at 1:10:05 PM UTC-7, Kai Stian Olstad wrote: > > On 14. juni 2016 19:53, Jerome Yanga wrote: > > Thanks, Kai. > > > > You hit the nail on the head. If there is a doc on how to do this &g