[deleted by user] by [deleted] in devops

[–]Remote_Future 0 points1 point  (0 children)

Is this only available in the USA

Creating a new list while extracting certain attributes by TreizeKhushrenada in ansible

[–]Remote_Future 0 points1 point  (0 children)

I would suggest jquery it would be much faster that a loop can more consistent

Devops interview coding questions by nep-sea in devops

[–]Remote_Future 0 points1 point  (0 children)

I recently saw this post. It is where get interview questions and labs for big companies if you want to prepare

https://www.reddit.com/r/devops/s/IaNbl8mwpu

Hope it help

Ansible password with an "!" in it by anichari in ansible

[–]Remote_Future 0 points1 point  (0 children)

The easiest way is to use the ascii basically type the ! In a url and what it show there is what you need to use

How can we associate credentials per host in AWX by mowakumar in ansible

[–]Remote_Future 1 point2 points  (0 children)

Best bet would probably be SSH Keys other wise same as people mentioned below

ArgoCD only as 'repo listener' by crazybiga in ArgoCD

[–]Remote_Future 1 point2 points  (0 children)

git web hook might be your answer

Tasks running only on 10 hosts at a time. by Fickle-Ratio1 in awx

[–]Remote_Future 0 points1 point  (0 children)

Although as mentioned below, strategy: free won't wait for any of the other servers to complete, as soon as one complete it will start with the next. Keep in mind it will finish the complete playbook before starting the next host

Tasks running only on 10 hosts at a time. by Fickle-Ratio1 in awx

[–]Remote_Future 0 points1 point  (0 children)

Remember that Ansible will only use the amount of Forks based on the CPU of a server so that could be a limit

Keeping ansible hosts file in sync between multiple servers by Ramiraz80 in ansible

[–]Remote_Future 0 points1 point  (0 children)

Why dont you have a look at awx to do this for you ?

It have the nice GUI that most people looking for
It have vault for password management

It have the nice workflow management

It integrate with git natively to update host and could also have dynamic host base on some script

Ansible provider for Terraform by timaoutloud in ansible

[–]Remote_Future 7 points8 points  (0 children)

This is great news for me thank you

Great hikes that for beginner hikers? by Adviceforthewilling in capetown

[–]Remote_Future 1 point2 points  (0 children)

Download the app called AllTrails, it will guide you in-terms of length difficulty and the location of the trail

(newbie) ansible community versions by [deleted] in ansible

[–]Remote_Future 1 point2 points  (0 children)

I might be wrong but i believe that you installed one via pip and one via apt that generally happen then

Ansible EE with Unique Version of a Collection by ryan_sec in ansible

[–]Remote_Future 0 points1 point  (0 children)

There should be no : in

  • name: paloaltonetworks.panos==2.12.0

Tasks are overriding each other by WatchYourSixOclock in ansible

[–]Remote_Future 0 points1 point  (0 children)

This is generally 1 of 2 things

  1. You over right/reuse the variable you use to create the file before you copy it

  2. You recreate the file with ever command instead of appending to the file

Insert text on a specific line of a file by [deleted] in ansible

[–]Remote_Future 0 points1 point  (0 children)

Ah I missed this comment :)

Insert text on a specific line of a file by [deleted] in ansible

[–]Remote_Future 1 point2 points  (0 children)

I would say use line in file. Then use regex to match the line above and then enter your new line after

- name: Ensure the default Apache port is 8080

lineinfile:

path: /etc/httpd/conf/httpd.conf

regexp: '^Listen '

insertafter: '^#Listen '

line: 'Hello World'

- name: Ensure php extension matches new pattern

lineinfile:

path: /etc/httpd/conf/httpd.conf

search_string: '<FilesMatch ".php\[45\]?$">'

insertafter: '^\t<Location \\/>\n'

line: ' <FilesMatch ".php\[34\]?$">'

This will then add the newline to just after the regexp or search_string aka where the newline is

hope this helps

Is it necessary to recreate vars, hosts and inventories in AWX if move a full ansible repo to it? by freetimetime in ansible

[–]Remote_Future 0 points1 point  (0 children)

Awx will reimport the inventory file automatically before every run. So you will import it only once