Skip to main content

Questions tagged [ansible]

Ansible is an automation tool ("IT orchestration engine", per the company web site) for the deployment and configuration of applications and systems.

1 vote
1 answer
108 views

This is my first time posting here, and I’m quite excited. I’ve written a playbook and would like to know whether it achieves the intended results fully, and if there’s anything I should improve or ...
hnajafli's user avatar
0 votes
0 answers
33 views

I am trying to automate the deployment of a cybersecurity lab. My goal is to have a repeatable process to create a Debian-based with all my tools and configs. To this extent, I recently discovered ...
paupaulaz's user avatar
  • 165
6 votes
2 answers
852 views

I'm writing an ansible playbook, which I'm fairly to. I'm having issues with ansible-playbook complaining about my quotes, which from my understanding are correct. I've tried 3 things described at the ...
jitter's user avatar
  • 117
2 votes
3 answers
297 views

This Ansible Jinja template function now(utc=true,fmt="%H:%M:%S") allows to get the current timestamp in the specified format, in UTC. How can one get the timestamp in their local, or ...
dr_'s user avatar
  • 32.4k
2 votes
1 answer
232 views

I work in a STIG environment with Active Directory integration for logins. When I try and run an Ansible script, my RHEL 9 machines return back the following error: "module_stdout": "/...
Will Burnside's user avatar
2 votes
1 answer
83 views

I wrote an Ansible playbook to grab information from some YAML files and store it in a MariaDB database. It uses this Jinja SQL template: REPLACE INTO mytable(hostname,fqdn,owner, ...) VALUES {% for ...
dr_'s user avatar
  • 32.4k
0 votes
0 answers
33 views

I want to add an IGMP protocol to firewalld on a RHEL9 host. I could easily achieve it by running the following command: firewall-cmd --add-protocol=igmp However, things become different when it comes ...
NeilWang's user avatar
  • 270
2 votes
2 answers
251 views

I have written an Ansible playbook to insert data into a MySQL database. It uses this Jinja2 template: INSERT INTO mytable(hostname,foo,...) {% if hostvars[h]['something'] is defined %} VALUES (`{{ ...
dr_'s user avatar
  • 32.4k
1 vote
0 answers
743 views

I am provisioning RHEL 9 machines via an Ansible playbook that contains this task: - name: Set DNS server community.general.nmcli: conn_name: "{{ conn_name | default('ens192') }}" ...
dr_'s user avatar
  • 32.4k
0 votes
2 answers
184 views

To get today's date, I'm using this variable in a Jinja template: {{ now() | ansible.builtin.strftime('%d/%m/%Y') }} However, it fails with an error ansible.errors.AnsibleFilterError: Invalid value ...
dr_'s user avatar
  • 32.4k
0 votes
2 answers
119 views

On several of my RHEL 9 machines managed by Ansible, the java-1.8.0-openjdk package is versionlocked: - name: java-1.8.0-openjdk-1:1.8.0.402.b06-2.el9 state: present However, Ansible tries to ...
dr_'s user avatar
  • 32.4k
0 votes
1 answer
143 views

This is my ansible-playbook: --- - name: "Setup local Fedora 41 system (root) Base" hosts: localhost connection: local become: yes tasks: - name: Install packages ...
hhlp's user avatar
  • 15
0 votes
1 answer
172 views

I have an Ansible playbook that writes to /etc/sssd/sssd.conf this Jinja template (variables are defined somewhere else): # This line is just to check that the file is written correctly [sssd] ...
dr_'s user avatar
  • 32.4k
0 votes
1 answer
80 views

How do admins typically distribute Ansible .pub keys to clients in an early environment? Do they just script that can run ssh-copy-id to multiple machines? I've looked at other forums and users said ...
Ambre's user avatar
  • 111
0 votes
1 answer
498 views

I'm getting a strange message with Ansible. On a RHEL 9 server, I can join our domain via the shell command line realm join example.xyz --user=svc-ansible --computer-ou="OU=Linux Servers, OU=...
dr_'s user avatar
  • 32.4k

15 30 50 per page
1
2 3 4 5
35