Re: [ansible-project] YML Error when using shell module

2021-02-10 Thread Joe Langdon
cho 'echo \"rs.initiate({{ my_init }})\"|mongo'" > register: result > - debug: > var: result.stdout > > should give valid escaped JSON > > result.stdout: 'echo "rs.initiate({\"_id\": \"mongors1conf\", >

Re: [ansible-project] Re: loop through a json object

2019-08-24 Thread Joe Langdon
t; You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://g

Re: [ansible-project] More dynamic variables

2019-08-22 Thread Joe Langdon
0%2B7%2FLmG8dAukPvIk5NH2yWWcOiQFRjOEWDmH3pY%3D&reserved=0 > . > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-

Re: [ansible-project] Need direction oh how to either Loop Variables or use Lists for Variables within Roles

2019-08-14 Thread Joe Langdon
Thanks Kai I did not realize that the inventory was actually used to set random Variables for hosts, if these variables did not have anything to do with the ssh configuration. Thanks On Wednesday, August 14, 2019 at 5:12:10 PM UTC-4, Kai Stian Olstad wrote: > > On 14.08.2019 22:25, Joe L

[ansible-project] Need direction oh how to either Loop Variables or use Lists for Variables within Roles

2019-08-14 Thread Joe Langdon
I have a role that configures a JSON file on a server. The JSON file needs know the following variables which are DIFFERENT for each server. This file is the later used to for a script that installs software [root@ip-172-29-100-198 roles]# cat elasticconfig/*defaults/*main.yml --- # default

[ansible-project] Re: The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
boots to happen organically over time. On Monday, July 29, 2019 at 4:29:22 PM UTC-4, Joe Langdon wrote: > > Hello, > > I am using an Ansible Role to copy a template file. It is not allowing me > saying.. "The destination directory (/sys/module/nvme_core/parameters)

[ansible-project] Re: The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
Figured it out. I needed to use the template option "unsafe_writes: yes" On Monday, July 29, 2019 at 4:29:22 PM UTC-4, Joe Langdon wrote: > > Hello, > > I am using an Ansible Role to copy a template file. It is not allowing me > saying.. "The destination di

[ansible-project] The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
Hello, I am using an Ansible Role to copy a template file. It is not allowing me saying.. "The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user" *Here is the execution of the play* [root@ip-172-29-100-198 roles]# *ansible-playbook -u root --as

Re: [ansible-project] Learning Ansible, tutorials and trainnings

2019-02-05 Thread Joe Langdon
;utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Joe Langdon Sometimes when you think life is kicking you in the ass, it's actually just moving you quickly to a better place. -- You received this message because you are subscribed to the Goo

[ansible-project] Re: Ansible but with Python instead of YAML

2019-02-01 Thread Joe Langdon
I would take a look at Troposphere. It is a Python project that creates JSON / YAML for Cloudformation scripts. Very similar to what you want to do. I have not heard of the same project for Ansible https://github.com/cloudtools/troposphere On Friday, February 1, 2019 at 5:42:53 AM UTC-5, Thom

[ansible-project] How do you specify Two Private Static IPs to different NIC cards during EC2 creation?

2019-01-24 Thread Joe Langdon
My current use case requires me to do that following Create 50 Linux CentOS 7 boxes. Eth0 must be 172.30.0 {80-120} on Subnet A Eth1 must be 172.30.1.{80-120) on Subnet B Note sure how to do this after reading the documentation,. https://docs.ansible.com/ansible/latest/modules/ec2_module.ht