Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 6017

Use this tag for questions about Ansible, an open-source automation engine, related to using Ansible for topics such as cloud provisioning, configuration management, application deployment, etc.

1 vote

Ansible Tower on a Free Linux Distro?

The Ansible Tower Requirements still states CentOS 7.7 or later 64-bit (x86) however you must have valid subscriptions attached before installing and running An other option might be to use Ansible … It is one of the upstream projects for Red Hat Ansible Automation Platform. …
U880D's user avatar
  • 450
1 vote
Accepted

ansible-doc command for filters & plugins

The command ansible-doc Displays information on modules installed in Ansible libraries. …
U880D's user avatar
  • 450
1 vote

known_hosts module reports changed when nothing has changed

It seems that the issue you've filed, Ansible Issue #78598 was noticed. It was possible to reproduce, got a small fix and an easyfix label. … You could provide after testing an update on the Ansible Issue. …
U880D's user avatar
  • 450
2 votes
Accepted

How to lock a user using ansible?

Similar Q&A Ansible, only disable existing users? …
U880D's user avatar
  • 450
1 vote
Accepted

Why is ansible loop adding square brackets ("[]") into my role?

Meaning that somehow the square brackets sneak into my variable, which I got from a list. Right, that cannot create 'tank/subtank/[mom]': invalid character '[' in name is the expected behavior acco …
U880D's user avatar
  • 450
1 vote
Accepted

Multiple shell commands not executing with shell module

Further Recommendation Instead of using the shell module implement the commands with Ansible modules file module – Manage files and file properties How can I manage keyring files in trusted.gpg.d within … an Ansible playbook? …
U880D's user avatar
  • 450
3 votes
Accepted

How to create, but not overwrite, a file and manage its permissions with ansible?

The most obvious candidate to this task is ansible.builtin.file with state: touch. Right, this could be an option. However, it always appears as changed as the times need to be updated. According …
U880D's user avatar
  • 450
0 votes

How to design an ansible workflow over multiple hosts?

become: false gather_facts: false tasks: - name: Create a basic filesystem (directory and files) debug: msg: "4.2" - name: Restart a daemon debug: msg: "5.2" Called via ansible-playbook …
U880D's user avatar
  • 450
0 votes

Convert AnsibleUnsafeText to String

Q: "My question how to compare AnsibleUnsafeText?" Just as usual via ==. Q: "Is it necessary to convert them to string before comparison?" No. A minimal example playbook --- - hosts: localhost becom …
U880D's user avatar
  • 450
4 votes

Ansible - Configuring Supermicro servers via Redfish API

Can someone explain how to map the API options to the Ansible modules? … How can I use the Ansible modules to set the hostname or to provide NTP settings? According the source it seems to be the manager_services for NTP. …
U880D's user avatar
  • 450
7 votes

Ansible: How to get hostname without domain name?

Then, according Information about Ansible: magic variables You can use the magic variable inventory_hostname, the name of the host as configured in your inventory, as an alternative to ansible_hostname … string split How to split value in Ansible with delimiter? …
U880D's user avatar
  • 450
2 votes

Ansible no user $HOME by default - so how do I run commands

"` echo /home/{{ ansible_user }}/.ansible/tmp/ansible-tmp-1234567890 `" && echo ansible-tmp-1234567890="` echo /home/{{ ansible_user }}/.ansible/tmp/ansible-tmp-1234567890 `" ) && sleep 0' Using module … file /usr/lib/python2.7/site-packages/ansible/modules/files/find.py ... …
U880D's user avatar
  • 450
1 vote

How to determine the color of a shell script task in Ansible?

... it could be encoded most easily in the exit code of the script ... Right, the documentation about Error handling in playbooks show how one Define failure or Define changed. This will work for sc …
U880D's user avatar
  • 450
0 votes
Accepted

Ansible user_module exit with "rc: -25" if UID is large

After research it turned out that it will be necessary to set a larger file size limit via Ansible module pam_limits. …
U880D's user avatar
  • 450
1 vote

How to verify the time zone change is correct on AWS EC2 using Ansible?

Since Ansible is a Configuration Management Tool with which you set a Desired State, such validation is part of the modules in general. … Further Readings Please take note about What is the exact list of Ansible setup min?. Using Ansible to verify configurations …
U880D's user avatar
  • 450

15 30 50 per page