[ansible-project] Issue while parsing Complex Regular expression in YAML file

2020-06-03 Thread Pawan Kumar
Issue is coming while parsing the following regular expression "^[a-zA-Z0-9-+.#$%&~*\/=?^_ '\"\\!]{9,430}$" *Tried other options like * "^[a-zA-Z0-9-+.#$%&~*\/=?^_ '\\\"\\!]{9,430}$" '^[a-zA-Z0-9-+.#$%&~*\/=?^_ '\"\\!]{9,430}$' *Issues coming * stderr: |- while scanning a

Re: [ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Shifa Shaikh
Stephan Hi, The article does not discuss newline inside parenthesis `{{` inside a variable definition. That is where I have no clue. On Thursday, June 4, 2020 at 10:31:41 AM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 6/4/20 6:41 AM, Shifa Shaikh wrote: > > I tried all of these but have

Re: [ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Stefan Hornburg (Racke)
On 6/4/20 6:41 AM, Shifa Shaikh wrote: > I tried all of these but have no clue to a solution.  > > mailbody: "{{ mailbody | default('') + 'PROFILE_NAME:' +  PROFILE_NAME + "\n" > + 'SERVER_NAME:' + SERVER_NAME + "\n" + > 'NODE_NAME:' +  NODE_NAME + "\n\n\n\n\" }}" > > mailbody: "{{ mailbody |

Re: [ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Shifa Shaikh
I tried all of these but have no clue to a solution. mailbody: "{{ mailbody | default('') + 'PROFILE_NAME:' + PROFILE_NAME + "\n" + 'SERVER_NAME:' + SERVER_NAME + "\n" + 'NODE_NAME:' + NODE_NAME + "\n\n\n\n\" }}" mailbody: "{{ mailbody | default('') + 'PROFILE_NAME:' + PROFILE_NAME + '\n'

Re: [ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Shifa Shaikh
@Dick VIsser Hi, Upon your suggestion, I tried something like this but it too does not work. - set_fact: mailbody: "{{ mailbody | default('') + 'PROFILE_NAME:' + PROFILE_NAME ~ \"\n\n\"'SERVER_NAME:' + SERVER_NAME ~ \"\n\n\"'NODE_NAME:' + NODE_NAME ~ \"\n\n\n\n\" }}" Can someone

Re: [ansible-project] Convert Ansible playbook to bash script

2020-06-03 Thread Dick Visser
Hi It would help if you come up with actual playbooks and a (better) description of what this is actually about. I see a few random technology names like vagrant, virtual box, EC2 but those mean nothing without context. You will get the best results with specific questions about Ansible related

[ansible-project] Convert Ansible playbook to bash script

2020-06-03 Thread Sushant Sawant
Hi guys, Little bit of background, I have a project which has ansible playbook vagrant installation. This runs on my local machine Ubuntu 18.04 There is no developer working on this, I have no experience on ansible. To take this to server, ansible is unable to access port on virtual box

Re: [ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Dick Visser
I won't comment on whatever it is you're trying to do, but in any case you need to use double quotes around the newlines On Wed, 3 Jun 2020 at 20:12, Shifa Shaikh wrote: > How can I add new line characters to Ansible variable mailbody. This > mailbody variable is used for mail module's body

[ansible-project] Add new line “\n” character to Ansible set_fact variable

2020-06-03 Thread Shifa Shaikh
How can I add new line characters to Ansible variable mailbody. This mailbody variable is used for mail module's body attribute. I tried the below from suggestions but none of them works. 1. - set_fact: mailbody: "{{ mailbody | default('') + 'PROFILE_NAME:' + PROFILE_NAME ~

Re: [ansible-project] aws community edition and collection

2020-06-03 Thread Matt Martz
Largely the split was done between what was previously "core" supported and what was community supported. amazon.aws is supported by Red Hat/Ansible employees, and community.aws is technically supported by the community. New modules/plugins should almost definitely be submitted to community.aws,

[ansible-project] aws community edition and collection

2020-06-03 Thread Sydo Luciani
aws modules have been redirected/moved to two different repositories, some to community.aws and some to amazon.aws https://github.com/ansible-collections/amazon.aws https://github.com/ansible-collections/community.aws My first question is, what was the criteria for moving each modules to

Re: [ansible-project] Getting the version of an Ansible Galaxy role

2020-06-03 Thread Brian Coca
if they are your roles a _rolname_version in vars/main.yml would be a good workaround. -- -- Brian Coca -- 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

Re: [ansible-project] With_items /pass var - string.

2020-06-03 Thread Dick Visser
All the looping constructs (with_items etc) assume you have some data structure that is iterable, ie. a list, a dict, etc. >From your vars file it seems (guessing here) that you want to iterate over multiple independent variables. If that is the case, I would suggest restructuring those multiple

Re: [ansible-project] Passing variables between hosts

2020-06-03 Thread Dick Visser
You seem to be trying to terminate an instance from that very instance? That doesn't sound like it would work. You should use another host. On Wed, 3 Jun 2020 at 07:57, Andrew Morgan wrote: > Hello all, > > I have a playbook that is 99% complete but fails on the last step.My > inventory file