Questions tagged [ansible-galaxy]

Ansible Galaxy is a portal that provides Ansible roles that are shared by users and could be used by other users (e.g. instead of creating a role that installs git, a user could search a role in Ansible Galaxy and reuse it)

Ansible Galaxy is a portal that provides Ansible roles that are shared by users and could be used by other users.

For example, instead of creating a role that installs git, a user could search a role in Ansible Galaxy and reuse it to avoid reinventing the wheel.

Project homepage

https://galaxy.ansible.com/

23 questions
0
votes
1 answer

You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable

My environment: # cat /etc/debian_version 11.7 # ansible-playbook --version ansible-playbook [core 2.13.1] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible…
alexus
  • 13,112
  • 32
  • 117
  • 174
0
votes
1 answer

ERROR! couldn't resolve module/action 'community.general.timezone' RH8

I have this error ERROR! couldn't resolve module/action 'community.general.timezone' OS is RedHat 8 ansible 2.9.27 Ansible installed via yum So I installed missing modules via ansible-galaxy, but when I run playbook ( as normal user) I get still the…
andrew
  • 209
  • 2
  • 9
0
votes
1 answer

AWX execution environment pip error ResolutionTooDeep: 2000000

I've been building an execution environment for my awx for a while now and never got any kind of problem, but now I am trying to recreate the same EE I created 1 month ago, and it does not work anymore. It used to take just 15 minutes to build the…
Jose
  • 21
  • 1
  • 2
0
votes
1 answer

Ansible | conditional statements should not include jinja2 templating | when group_name variable

I have a simple ansible main_task.yml file which is looped from a main.yml . inventory.ini [port_22] 192.168.0.189 192.168.0.199 [port_222] 192.168.0.199 [port_888] 192.168.0.200 main_task.yml --- - name: "run this on {{ item }} hosts" debug:…
0
votes
0 answers

Automate Percona Server installation

I'm installing Percona Server 8.0 on Ubuntu using ansible, so it's non-interactive. I'm trying to run the post-install mysql_secure_installation program, but that's not much good without interaction. Is there some way I can set its properties such…
Synchro
  • 3,148
  • 6
  • 27
  • 38
-2
votes
2 answers

Error while connecting to remote host using Ansible

Geting error while connecting to remote Mysql host using Ansible. Playbook as below --- - name: "Create database" login_host: host.xyz.com login_password: "{{ mysql_root_pass }}" login_port: "{{ mysql_port }}" login_user: "{{ mysql_root…
sanjayparmar
  • 633
  • 8
  • 19
-2
votes
1 answer

How to write Ansible playbook to commit and push my new updates on gitlab repository

How to write Ansible playbook to commit and push a gitlab repository? I have Ansible tower template to launch my playbook, then playbook must do commit and push on different git repo. This git repo on successful push will trigger jenkins pipeline.
-8
votes
1 answer

I have 50 servers. Want to update /etc/hosts file using ansible

I would like to update /etc/hosts file using ansible playbook to all my 50 servers.
KKE
  • 135
  • 1
  • 4
  • 11
1
2