Skip to main content
Filter by
Sorted by
Tagged with
-6 votes
1 answer
148 views

Windows has a lot of built-in firewall rules. Not all of them are enabled by default. I want to write an Ansible playbook, that can enable specific rules. Unfortunately, the rule names and groups are ...
stackprotector's user avatar
0 votes
2 answers
664 views

When installing ansible-dev-tools into venv with python -m venv .venv source .venv/bin/activate pip install ansible-dev-tools All the provided executables are located at .venv/bin and are executable ...
MaKaNu's user avatar
  • 1,076
0 votes
0 answers
34 views

I have cloned the repository in $HOME using git clone --depth=1 https://github.com/gauravpathak/zynq-zc706-buildroot-webserver.git I have this directory structure of files for one ansible playbook: . ├...
Gaurav Pathak's user avatar
0 votes
3 answers
60 views

I'm trying to execute a shell script on a localhost using Ansible and display the output of the script. I've registered the output of the command using the shell module and stored it in the result ...
Vito Custodero's user avatar
1 vote
1 answer
38 views

I have the following structure: |- group_vars/ |- local/ |- local.yml |- roles/ |- myrole/ |- vars/ |- main.yml groups_vars/local/local.yml: myvar: <FIXME> roles/...
khteh's user avatar
  • 4,280
1 vote
0 answers
98 views

I have a very simple Python script to run an Ansible playbook (A post call to get an access token from the OAuth2 authorization server and save it in a .txt file). I have secrets stored in ansible-...
RAY's user avatar
  • 35
2 votes
1 answer
76 views

I'm trying to write a role that finds difference between records in DN servers and records in Git. Some of them were added manually via Web interface. For that purpose in my Ansible playbook I ...
trust in ratio's user avatar
1 vote
1 answer
290 views

I'm new to the automation world and I'm stuck trying to figure out how I can automate and maintain Nginx conf files for the vhost I manage using Ansible. For example, normally I would create a conf ...
HOVNetworks LLC's user avatar
2 votes
1 answer
58 views

I am working on an Ansible playbook for iOS flash files backup, which shows the flash: of a Cisco router and tries to pick all the filenames from the multiline string into a list. Later it will create ...
mrin9san's user avatar
  • 407
0 votes
1 answer
62 views

Ansible custom facts, defined in /etc/ansible/facts.d. I can get their values manually just fine, like so: [root@lnx000 templates]# ansible lnx072 -m ansible.builtin.setup | grep ogg_fact ...
Symian Army's user avatar
1 vote
2 answers
120 views

I want to append all the hostnames into a list and pass it to another play with different host-group (remote server) where it searches for a file with a pattern. I am trying an Ansible playbook - - ...
mrin9san's user avatar
  • 407
0 votes
1 answer
234 views

Backstory: I'm making an Ansible role that creates an SSH key for hosts that need one and automatically updates my configuration file with the latest information; lan ip, username, key, etc. I can't ...
Brad T's user avatar
  • 45
0 votes
1 answer
108 views

I have a requirement to collect all my service running status on multiple hosts and get it in one output file. - name: To check status of services running hosts: all tasks: - name: "...
Digvijay singh chouhan's user avatar
1 vote
0 answers
52 views

I am referring to aws_batch_job_definition – Manage AWS Batch Job Definitions — Ansible Documentation page in-order to create aws job-definition. As mentioned, we can create a container type of job-...
Vinod Shunmugavel's user avatar
0 votes
1 answer
106 views

I have ansible in a cluster environment and first server ok the cluster is used for project update, all off a sudden in few days I see that project update is failed with no error in the ansible job ...
Aman Anand's user avatar
0 votes
1 answer
127 views

I would like to display a debug message in my playbook. This is my playbook: [blablabla] - debug: msg: - "######################################################################" -...
Tux212's user avatar
  • 71
0 votes
1 answer
246 views

I need to mount 4 filesystems into sd* devices based on size. If sda- 100, sdb -200 and sdc -50 and sdd -100 GB respectively then I need to mount my app filesystems into these 4 devices based on size. ...
user312307's user avatar
2 votes
1 answer
49 views

I'm attempting to pass a list of dictionaries to an Ansible role that expects a variable defined per the below. var1: - path: /A/1 state: directory - path: /B/1 state: directory Let's say ...
Kimmel's user avatar
  • 667
0 votes
1 answer
264 views

I'm trying to use the archive module in Ansible but have extra flags I need to use, specifically for tar. I've used the unarchive module with the parameter extra_opts but I don't see anything like ...
3nigma_'s user avatar
0 votes
1 answer
368 views

I am trying to run block of tasks and have rescue statement in case the task in block fails. - block: - name: Set shell session shell: xyz - fail: msg: shell failed rescue: ...
user312307's user avatar
0 votes
1 answer
56 views

I am trying to look for the HTTP method equivalent for the following playbook code for method LIST. - name: List all folders ansible.builtin.uri: url: https://{{ My_vault_url }} method: LIST ...
Sukh's user avatar
  • 570
2 votes
1 answer
116 views

I have a task as below : -name : Set-up shell: abc register: "{{item }}_result" loop: {{ setu }} -name: set of tasks include_tasks: abc.yml when "'{{ item }}_result'.rc!=0" ...
user312307's user avatar
0 votes
1 answer
35 views

Trying to run a command in Azure VM via Ansible and Azure cli command but getting template issue - name: Disable disk expansion shell: | az vm run-command invoke -g {{ resource_group_name }} ...
sai's user avatar
  • 1
2 votes
0 answers
704 views

I set up a deployment pipeline using GitHub actions and am experiencing an issue with Ansible seemingly not being able to find the python interpreter. The step in the job is as follows. I set the ...
HBach's user avatar
  • 83
0 votes
2 answers
465 views

I have following code where in I want to implement conditional logic like if-else construct: - name: Download katello agent package get_url: url: "{{ abc_url }}/pub/yyy.rpm" dest: &...
user312307's user avatar

1
2 3 4 5
38