Re: [ansible-project] Error messages

2020-09-24 Thread Stefan Hornburg (Racke)
On 9/25/20 7:01 AM, Joe wrote: > I'm pretty new to ansible, so I'm learning as i go. I run the code below and > it seem to work. However i get the  > following errors messages?  Any one know why?  Any one have suggestions on > how i should re-write it  properly?   >

[ansible-project] Error messages

2020-09-24 Thread Joe
I'm pretty new to ansible, so I'm learning as i go. I run the code below and it seem to work. However i get the following errors messages? Any one know why? Any one have suggestions on how i should re-write it properly? - ---

[ansible-project] Re: How to run my Playbook using the Python 3.8.5 as an interpreter?

2020-09-24 Thread Prabhakaran Karuppaih
In the above message, I mentioned the error is just: "No such file or Directory" but I forgot the mention the in which part of the playbook where I am the getting error is: TASK [Gathering Facts]** On Friday, 25

[ansible-project] How to run my Playbook using the Python 3.8.5 as an interpreter?

2020-09-24 Thread Prabhakaran Karuppaih
Hi Members, I tried running my ansible playbook using below linux command on CentOS 7 (Minimal Install - Command line only). But Unfortunately I am getting an error message. How to run it properly using my altinstalled Python 3.8.5. And also How to know on which folder the

Re: [ansible-project] Docker+gitlab setup using ansible

2020-09-24 Thread Gopal Dhapa
Hi, want to implement ansible like docker install, docker pull. Lamp installation in a docker image, after this docker image, want to use in GitLab. Using git runner then the developer can download this image which is already set. Using GitLab just one-click setup will ready that's I want in my

Re: [ansible-project] Timezone change

2020-09-24 Thread Vladimir Botka
On Thu, 24 Sep 2020 09:04:03 -0700 (PDT) Vineeth Joseph Abraham wrote: > ... Can someone help me with steps in ansible or > shell command to replace the zone ? Use module "community.general.timezone" https://docs.ansible.com/ansible/latest/collections/community/general/timezone_module.html

[ansible-project] single instance of module trough playbook execution

2020-09-24 Thread thlanzer
Hello guys I work with an API that is pretty old and only supports get of a whole bunch of data objects. The data is quite complex as I decided to define my own module/plugin to parse and store the result in memory by using a dictionary with support of lookup by a specific keyword. So what I

Re: [ansible-project] GPG Signature Validation failed for mysql community release...

2020-09-24 Thread Prabhakaran Karuppaih
Hi Members, I sincerely requesting you all to kindly have a look on my recent Question and answer if possible. Please doesn't take it otherwise. I am desperate, that's why. Hope you understand... With Hope, Prabhakaran On Thu, 24 Sep 2020, 19:33 Prabhakaran Karuppaih, <

[ansible-project] Re: ansible installation: no /etc/ansible/hosts file

2020-09-24 Thread stevenjw...@gmail.com
What if you want to use another directory for hosts, this is where the ansible.cfg file comes in handy. So where does this file go in MacOSX? On Monday, November 30, 2015 at 11:30:54 AM UTC-6 rup wrote: > We don't bother with the /etc/ansible/hosts file because we installed > ansible in a

[ansible-project] Ansible can read environment variables which AWS CloudFormation creates ?

2020-09-24 Thread Vineeth Joseph Abraham
Hi All, Is there a way Ansible can read environment variables which AWS CloudFormation creates ?. For example : CloudFormation can create ANSIBLE_SOURCE env variable with the S3 bucket name that Ansible can read to pull the necessary files for a VM. Thanks in Advance. Vineeth -- You

[ansible-project] Re: need playbook to update ubuntu and centos

2020-09-24 Thread Idan Melamed
I suggest taking a look at the service module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html You can use this module to update both YUM and APT packages. Some packages have different names, so be sure to take that into account. You can see an example here:

Re: [ansible-project] need playbook to update ubuntu and centos

2020-09-24 Thread Dick Visser
How do you perform that currently? On Thu, 24 Sep 2020 at 19:39, Tony Wong wrote: > how can i update both ubuntu and centos boxes all in one playbook? > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > > > To

[ansible-project] need playbook to update ubuntu and centos

2020-09-24 Thread Tony Wong
how can i update both ubuntu and centos boxes all in one playbook? -- 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] Re: Timezone change

2020-09-24 Thread Vineeth Joseph Abraham
got it resolved. i used the lineinfile module to replace with the timezone - lineinfile: path: /etc/sysconfig/clock regexp: 'ZONE=' line: 'ZONE="{{ timezone }}"' state: present backup: yes when: current_zone.stdout != '{{ timezone }}' On Thursday, 24 September 2020 at

Re: [ansible-project] How to convert dict or list to string in ansible

2020-09-24 Thread Devops testing
Hi Racke, Thank you for your response. I have used pause module and it got printed as expected. Is there a way to store that printed content in variable? I have to copy that content to a file and add few extra lines to that file and have to apply that configuration content to firewall. Please let

[ansible-project] Timezone change

2020-09-24 Thread Vineeth Joseph Abraham
Hi Following is the script to change the timezone in ec2-instance vars: - timezone: Canada/Eastern - name: Check current timezone shell: awk -F\" '{ print $2}' /etc/sysconfig/clock register: current_zone changed_when: False - name: Set EST timezone file:

Re: [ansible-project] How to convert dict or list to string in ansible

2020-09-24 Thread Stefan Hornburg (Racke)
On 9/24/20 3:46 PM, Devops testing wrote: > play:  >   - set_fact:  >          irules: "{{ rule | json_query('[*].definition') }}" >    - debug: msg: "{{ irules }}"   > > output:  > "msg": [ "when HTTP_REQUEST {\n       switch -glob [HTTP::uri] {\n        > \"*HAC*\" { pool

Re: [ansible-project] GPG Signature Validation failed for mysql community release...

2020-09-24 Thread Prabhakaran Karuppaih
Hi Racke, Use Python 3 :-). I have installed Python 3.8.5 Set the following variable (e.g. in your inventory) Sorry. I don't know How to do it... Need your Help on this.. ansible_python_interpreter: /usr/bin/python3 Where to enter the above codeline. Please explain. With Hope, Prabhakaran On

[ansible-project] How to convert dict or list to string in ansible

2020-09-24 Thread Devops testing
play: - set_fact: irules: "{{ rule | json_query('[*].definition') }}" - debug: msg: "{{ irules }}" output: "msg": [ "when HTTP_REQUEST {\n switch -glob [HTTP::uri] {\n \"*HAC*\" { pool char.hr.cal.ed.ABC.pool }\n \n }\n}" ] I'm expecting output to

[ansible-project] Re: Getting module failure while creation file on AT

2020-09-24 Thread Kundan Singh
Task synatx - name: create some file file: path=/tmp/risratho.txt state=touch mode='0755' delegate_to: localhost i would like to rephrase my word on ansible tower it is giving below error. fatal: [80.0.20.219 -> localhost]: FAILED! => { "changed": false, "module_stderr": "/bin/sh:

[ansible-project] Getting module failure while creation file on AT

2020-09-24 Thread Kundan Singh
Hi All, Need your guidance. I am trying to create a file on Ansible Tower local host. Below is the task which syntax --- - name: create some file file: path=/tmp/risratho.txt state=touch mode='0755' delegate_to: localhost it is working fine on ansible engine. fatal: [80.0.20.219 ->

Re: [ansible-project] GPG Signature Validation failed for mysql community release...

2020-09-24 Thread Prabhakaran Karuppaih
Hi Mr.Racke, My Sincere thanks to you for answering most of my Questions. Would you Mind if I ask you some more Questions too.. Please reply.. With Hope, Prabhakaran On Thu, 24 Sep 2020 at 12:10, Stefan Hornburg (Racke) wrote: > On 9/24/20 8:12 AM, Prabhakaran Karuppaih

[ansible-project] Websitecreation playbook

2020-09-24 Thread rubod singh
HI Team, can someone share or point me to a playbook that can be used to create the iis websites dynamically on windows. i have this currently that i found on internet but doesnt seem to be working. --- - hosts: all vars: ansible_site_path: C:\inetpub\wwwroot\ansibletest

Re: [ansible-project] Branching/conditional statements to install different editions and versions of MS SQL Server

2020-09-24 Thread Rahul Puli
Solved the issue using when conditions for the plays and it perfectly. Install MSSQL version and edition depends on the user input (vars_prompt) on the target machine. --- # tasks file for mssql - include: download_sqlexpress2012.yml when: sql_version == "2012" and sql_release == "exp" -

Re: [ansible-project] GPG Signature Validation failed for mysql community release...

2020-09-24 Thread Stefan Hornburg (Racke)
On 9/24/20 8:12 AM, Prabhakaran Karuppaih wrote: > How does the corresponding task looks like and what is your Linux > distribution? > > Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) - > Command Line Only > > I have attached the Task (starfish.yml) > > Use Python 3

Re: [ansible-project] ios_vlans and ios_l2_interfaces error

2020-09-24 Thread Jaime Jaca
It works now. It does not allow neither provider nor connection: local must be network_cli. What replaces provider? El martes, 22 de septiembre de 2020 a las 18:19:17 UTC+2, dick@geant.org escribió: > You didn't provide the playbook, but from that error it's pretty > obvious that you're

Re: [ansible-project] GPG Signature Validation failed for mysql community release...

2020-09-24 Thread Prabhakaran Karuppaih
How does the corresponding task looks like and what is your Linux distribution? Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) - Command Line Only I have attached the Task (starfish.yml) Use Python 3 :-) Sorry to say... Actually I am reading a book to learn Asterisk.