Questions tagged [ansible]

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management.

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management. It manages nodes over SSH and does not require any additional remote software to be installed on them. Modules work over JSON and standard output and can be written in any programming language. The system uses YAML to express reusable descriptions of systems.

The platform was created by Michael DeHaan, the author of the provisioning server application Cobbler and co-author of the Func framework for remote administration. It is included as part of the Fedora distribution of Linux, owned by Red Hat inc., and is also available for Red Hat Enterprise Linux, CentOS and Scientific Linux via Extra Packages for Enterprise Linux (EPEL) as well as other operating systems. Ansible was commercially supported and sponsored by AnsibleWorks. Since October 2015 Ansible is owned by RedHat.

It was named by DeHaan after the fictional instantaneous hyperspace communication system featured in Orson Scott Card's Ender's Game.

1762 questions
0
votes
0 answers

How do I pre-configure SSH key on a new workstation?

I've been working on this project where my goal is to manage installs and updates on a park of Ubuntu nodes using Ansible. What is the issue ? If I want to connect to other nodes using Ansible, I need SSH access to them. Which means I need to share…
0
votes
1 answer

How to remove few strings from a whole line in ansible?

rem par str how to remove few strings I need to remove rem, par, str from the whole line
0
votes
0 answers

Add Ansible Template as RPC dependancy for Privilege Vault/Secret Server

We're running Delinea/Thycotic Privilege Vault in our environment. We're trying to onboard all credentials into Privilege Vault as much as possible, so that we can leverage Auto-Change, where the password is rotated by Privilege Vault every X…
user1913559
  • 219
  • 2
  • 12
0
votes
2 answers

When Ansible initiates a PowerShell script, how to get Ansible to return "ok" (nothing changed)?

Usually when Ansible kicks off a PowerShell script with win_command/win_shell/win_psexec, as long as it doesn't run into errors it'll return "changed", because of course it doesn't know what all the script did. Since we can return any exit code in a…
jerdub1993
  • 121
  • 4
0
votes
1 answer

Unable to configure the Verify Privilege Vault Software Development Kit for DevOps

I am running a RHEL 8 server, trying to utilise the SDK for Privilege Vault. I am following the instructions to install the SDK Secret Server Scripting Tool for DevOps (click here) on the Linux server but running into an issue when trying to…
user1913559
  • 219
  • 2
  • 12
0
votes
1 answer

Ansible Findall capture groups and list

I think I'm confused with Python and Ansible findall. Can I use capture groups in Ansible? For example, How can I capture group 1 and group 2 then reverse the position in the resulting list? For example, I'm pulling some block devices info of a VM…
Billy K
  • 121
  • 1
  • 3
  • 16
0
votes
1 answer

Ansible and Jenkins: "winrm is not installed: cannot import name utils

I started to learn Ansible and Jenkins a few days ago. I'm stuck on one particular problem and despite many efforts can't figure it out. I have a very basic playbook that runs OK if I run it directly from the command line. Ansible and Jenkins are…
Okrx
  • 73
  • 1
  • 12
0
votes
0 answers

how to start nginx with ansible?

I installed nginx manually on my server, I started it to see if everything right then I "stopped" it. Active: inactive (dead) since Thu 2022-12-15 02:58:37 EST; 7min ago I am now using an ansible playbook to start it from my local computer but I…
0
votes
1 answer

Ansible: grep crontab files based on usernames extracted from /etc/passwd

I'm looking to extract a list of users from /etc/passwd and then grep their crontab files for disabled (commented: ^#) jobs. The high level steps would be: Grab an array of usernames from /etc/passwd ("my_users") Run grep against the files named in…
Mike
  • 23
  • 7
0
votes
2 answers

Using a variable inside an Ansible loop

I am trying to get data from json data (below) using a loop with a variable (instead of hard coding a value). In the json data (below), 'cluster' can change therefore I cannot simply use: loop: "{{ drs_rule_jsondata.drs_rule_info.cluster }}" --…
BrillCom
  • 139
  • 2
  • 9
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

Removing brackets ([]) from Ansible string

Code: - name: Set category info as fact set_fact: category_info: "{{ category_info|default([]) + [ { 'category_name': item | json_query('category_name'), …
BrillCom
  • 139
  • 2
  • 9
0
votes
0 answers

Ansible-inventory of Vcenter that contains more info than just the vm name

I'm fairly new to Ansible and VMware. I've created a playbook to gather inventory info about all the VM's in a Vcenter instance and it works fine, but I want the inventory output to include more than just the VM names. This is the playbook I have…
0
votes
1 answer

Ansible trouble while launching an exe through win_command

I'm currently writing a playbook about uninstalling Fusion Inventory Agent and then deploy GLPI agent 1.4 on Windows Server 2016-2022. For all the tests i detail below, i use my domain account which has admin rights on any servers. (I run ansible…
motorbass
  • 303
  • 2
  • 12
0
votes
0 answers

How do I remount /home as the ec2-user in Ansible?

I can manually remount /home as the ec2-user by executing these three lines: $ cd / $ exec sudo -i # mount -a How do I do this in Ansible without rebooting? Edit: /home is on a separate volume. No other users are on the box. The cd / removes usage…
wirelessben
  • 77
  • 2
  • 7