ansible Questions

2

Solved

I'm habituated to use --tags when I'm using ansible-playbook to filter what tasks will be executed. I recently switched from Ansible 2.7 to 2.9 (huge gap, eh ?). I was surprised ansible did not gat...
Sleepwalk asked 4/9, 2020 at 10:59

6

Solved

This Play installs python3, pip3, boto3 and botocore, and tries to use aws_s3 module to download a file: TASK [run yum update -y using yum module] *************************************************...
Plasia asked 22/3, 2019 at 21:31

2

TL; DR With Ansible I am trying to define some kind of default variable at playbook level - let's call it playbook defaults - which have precedence over roles defaults but can be overridden by the ...
Prana asked 14/3, 2018 at 15:44

3

Solved

I'm trying to pass a fact from host1 to host2, but when ansible reaches hosts2 it returns "undefined variable": - name: some playbook gather_facts: false hosts: host1 tasks: - set_fac...
Gillian asked 6/7, 2021 at 18:31

4

Solved

I am trying to stop/start the particular group of instances listed in the hosts file under group [target]. following playbook works fine to stop the instances. --- - hosts: target remote_user: ub...
Selia asked 28/12, 2015 at 14:45

2

Solved

The following task: - name: Filter out private IPs from addresses set_fact: private_ips: "{{ addresses | ansible.utils.ipaddr('private') | list }}" Failed with this output, but had wor...
Commination asked 18/3, 2024 at 13:42

7

Solved

I am trying to deploy kypo cyber range and am following its official guide. While deploying the whole range using ansible-playbook, I am stuck on above error: TASK [docker : install prerequisites] ...
Natashianatassia asked 5/4, 2022 at 8:7

2

I'm trying to get Ansible to connect to remote hosts but it fails with the following: fatal: [prod-k8s-worker02]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ss...
Kuroshio asked 29/4, 2019 at 4:51

5

I am facing an issue with deployment on Windows 2008 server using Ansible. I have a jenkins pipeline which has an Ansible Deployment stage wherein I drop the files on to the target servers from inv...
Osmometer asked 12/9, 2018 at 20:19

4

Solved

We want to have the same VSCode settings for the whole crew of developers. Also it would be fine to have a oneline command to tear VSCode down and restart it from scratch with predefined settings a...
Selfhood asked 3/6, 2019 at 14:54

3

Solved

It seems that getting failures due to /var/lib/dpkg/lock is something not very rare. Based on observations these are caused most of the time 9/10 due to state lock file or while a cron job was runn...
Typhoid asked 14/4, 2016 at 17:42

8

Solved

With Ansible please advise how i could download the latest release binary from Github repository. As per my current understanding the steps would be: a. get URL of latest release b. download the re...
Yamada asked 21/6, 2018 at 10:54

3

Solved

I have about 50 Debian Linux servers with a bad cron job: 0 * * * * ntpdate 10.20.0.1 I want to configure ntp sync with ntpd and so I need to delete this cron job. For configuring I use Ansible....
Peonage asked 21/10, 2015 at 9:11

3

Solved

I would like to include variables from a file on the remote host, rather than the control machine Ansible is running on. For example I have a file /var/database_credentials.yml (on my webserver) ...
Chase asked 15/2, 2016 at 13:10

4

What is the way to get the output of Ansible ad-hoc command in JSON, CSV or other format?
Burks asked 4/5, 2018 at 19:27

6

Ansible is reading /etc/ansible/hosts file and giving errors that I don't understand. ARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: Syntax Error while loading YAML. did not find e...
Felten asked 10/10, 2019 at 6:29

2

Solved

Background: This is an Ansible playbook using templates to CONSTRUCT a yaml file from a template. So basically I have a jinja2 template file with a line as such: private_key: {{ myvar }} Ansi...
Ingram asked 29/3, 2019 at 5:34

3

Solved

is there any mechanism that checks if the SSH/SUDO password is correct? When deploying a playbook across the whole environment, after putting in the wrong password, ansible runs on all hosts with t...
Artemisa asked 28/5, 2018 at 9:4

4

Solved

I'm starting out with ansible and I'm looking for a way to create a boilerplate project on the server and on the local environment with ansible playbooks. I want to use ansible templates locally t...
Loveridge asked 13/7, 2015 at 12:39

3

Solved

I want to print var1 and var2 in one Ansible task. I have this working YAML. - debug: var: "{{ item }}" with_items: - var1 - var2 I wonder whether is possible to do it without using ...
Ithnan asked 13/3, 2023 at 16:23

6

I'm finding it difficult to run a simple playbook. I already ping target and it was successful. When i run the playbook i get this error: PLAY [install httpd and start services] *******************...
Empiricism asked 31/3, 2022 at 14:19

5

Solved

I have created an autoscaling group for Amazon EC2 and I have added my public key when I created the AMI with packer, I can run ansible-playbook and ssh to the hosts. But there is a problem when I ...
Deckard asked 10/5, 2018 at 16:31

6

Solved

So I am trying to run ansible on my ec2 instances on aws, for the first time on a fresh instance, but every time I try to run a play I can't get around this error message: PLAY [localhost] *******...
Anadromous asked 2/3, 2016 at 13:28

4

Solved

i ve an ansible role which looks like this : my-role ├─── files │ my-file-one │ my-file-two │ my-file-... │ my-file-n └─── tasks main.yml in my main.yml , i ve this recursive copy task , and i...
Coleridge asked 3/1, 2020 at 14:1

9

Solved

Sometimes, ansible doesn't do what you want. And increasing verbosity doesn't help. For example, I'm now trying to start coturn server, which comes with init script on systemd OS (Debian Jessie). A...
Dibs asked 23/2, 2017 at 13:25

© 2022 - 2025 — McMap. All rights reserved.