Questions tagged [ansible]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

"dpkg: error: dpkg front end lock is locked by another process" [duplicate]

As part of my workflow I'm using Ubuntu server 20.04.3. So I prepare the image for the VM and deploy it using Ansible. Since it is env with no access to the internet all packages I'm installing have ...
0
votes
1answer
63 views

Ansible playbook on ubuntu 20

How to write Ansible Playbook to install different applications on different hosts on Ubuntu 20.04 Conditions When running a playbook it should ask for the host name (we must give the specific host ...
0
votes
0answers
41 views

Ansible `synchronize` module does not work

I really have no leads on additional information for this one. I have tried to get this to work on multiple occasions but never does. From the logs, i have no leads to why its not working. Anyone use ...
0
votes
1answer
74 views

rsyslog.service not found by Ansible during preseed late_command

I continually find that certain things "just don't work" when run as preseed/late_command in an Ubuntu Bionic preseed file. (The same applies to autoinstall for Ubuntu Focal.) In this ...
1
vote
1answer
96 views

Permission denied (publickey). while using SCP command

I have tried to copy some file in tomcat using SCP command scp ubuntu@xxxxxxx:/opt/apache-tomcat-9.0.48/conf/server.xml . ubuntu@xxxxxxx: Permission denied (publickey). help me to get out this Thank ...
2
votes
2answers
418 views

Nested Command in sed substitution

I'm trying to used sed to find and encrypt ansible_password field in an inventory file and encrypt it with ansible-vault command. But ansible-command is failing throwing an sed error, where as a ...
0
votes
0answers
12 views

Running Ansible on Ubuntu 18.04 VM

I am very new to CLoud computation, so maybe this is very straight forward question. I would like to run Ansible and deploy Nginx using Ubuntu 18.04 Virtual Machine (VM created on RedHat OpenStack). A ...
0
votes
0answers
42 views

Ansible to reconnect after reboot

I have a task that needs to run after a reboot. I know that checking connection can be done with wait_for_connection. I have the following draft: - name: Reboot host reboot: - name: Wait 300 ...
1
vote
1answer
152 views

Get sudoers file instantly work after reboot in Ubuntu 20.04

I'm trying to execute an ansible command as a user-level cron job which looks as follows: @reboot /home/jon/.local/bin/ansible-playbook /home/jon/deactivate.yml where deactivate.yml is doing something ...
0
votes
3answers
128 views

How to noninteractively add Certificate Authority (CA) ssl certificates from script

I have an ansible play that calls a script. The script copies .crt files for my private key infrastructure in to /usr/share/ca-certificates/my.domain.tld Then the script calls: sudo update-ca-...
0
votes
1answer
364 views

Failed to find required executable brew in paths - Ansible

I installed the latest version of Ubuntu on my Windows 10 and I am trying to run a playbook: --- - name: "My first play" hosts: localhost tasks: - name: "test ...
1
vote
1answer
97 views

Automation of desktop experience

I am trying to apply inside an Ansible playbook the following logic: Since: dconf read /org/gnome/shell/favorite-apps ['firefox.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop', '...
0
votes
0answers
89 views

Default Python Interpreter Error

While trying to ping the node machine from the ansible controller it shows like this . Any ideas to solve the issue. Version Oracle 7 192.168.0.107 | FAILED! => { "ansible_facts": { &...
0
votes
1answer
166 views

Ansible for Juniper on Ubuntu 20.04 - interpreter error

I'm having trouble setting up my Ansible playbook to run for Juniper on Ubuntu 20.04. I works for cisco though . At this point I'm stuck at getting Python 3 to work as the interpreter. Any working ...
0
votes
0answers
33 views

New to Linux Nassing and File sharing

So, I'm building my own tiny NAS. I have a question. I'd want to create a NAS (with SAMBA I'd say? OR whith Ansible NAS?), which would have plex running (and minecraft server ;)). Sometimes I'd want ...
1
vote
1answer
502 views

Install Older Ansible on Ubuntu 20.04

I have installed the latest Ansible using pip3 on Ubuntu 20.04. After that, even if I installed older Ansible version, it still sees the latest version (2.10.4 ) Here are the outputs and I'm not sure ...
0
votes
1answer
625 views

Ansible: dpkg-reconfigure -plow unattended-upgrades stopped while running

Here we are trying to start auto updating packages in Ubuntu through Ansible playbook. dpkg-reconfigure -plow unattended-upgrades When we run this command manually, it shows the following prompt, ...
0
votes
1answer
211 views

Ansible showing different version for root and non-root users

I need to use an older version of Ansible (2.9). I added the repo using add-apt-repository ppa:ansible/ansible-2.9. When I run ansible --version as root, I get: ansible 2.9.6 config file = /etc/...
1
vote
0answers
278 views

Problem on installing Ansible on 18.04 LTS

What I did: sudo apt-add-repository ppa:ansible/ansible ; sudo apt update ; sudo apt install ansible Error message: Some packages could not be installed. This may mean that you have requested an ...
2
votes
0answers
914 views

"[Errno 2]. No such file or directory: b'apt-get'", "rc": 2

I don't know why when I run my ansible-playbook to install packages on ec2-instances using apt-get this appears.[WARNING]: Updating cache and auto-installing missing dependency: python3-apt fatal: [...
0
votes
1answer
267 views

How can I use Ansible to claim that I accept the Microsoft EULA agreement for ttf-mscorefonts-installer?

How can I accept the Microsoft EULA agreement for ttf-mscorefonts-installer? lists some ways to achieve this (GUI, script, puppet config). But I am at loss how to handle echo ttf-mscorefonts-installer ...
0
votes
1answer
295 views

Reinstall GRUB on second disk's EFI partition from running system

I am trying to do something like this: How can I reinstall GRUB to the EFI partition? However, I don't see how I can run chroot because it's an automated process (with Ansible, but that shouldn't ...
4
votes
1answer
8k views

ansible: How to avoid warnings

I am using ansible for monitoring my home computing net, which consists several Linux machines (x64 and Raspberries). How can I avoid warnings from every Raspberry client? [WARNING]: Platform linux ...
0
votes
0answers
1k views

How to solve "No package matching 'docker-ce' is available"

I'm using Ubuntu 18.04 with Google Cloud Platform. I'm trying to install docker on my worker machine through my master machine but it keeps giving me the same error. [DEPRECATION WARNING]: Invoking &...
0
votes
1answer
558 views

How do I fix my ansible playbook

I'm using Ubuntu 18 on GCP and I'm trying to install the chromium browser on my worker from my master node. The playbook that I wrote successfully installed java, and git, on my worker node but I get ...
0
votes
1answer
672 views

How resolve WARN when run ansible: [WARNING]: Skipping plugin as it seems to be invalid?

When I run ansible command, like this: ansible -i host all -m ping I got this warnings: [WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/foreman.py) as it seems ...
1
vote
1answer
50 views

Need help with ansible

I have ansible project that automatically installs Patroni HA cluster. Problem is in patroni.conf file. It needs different configuration for every host. For example: Host 1 configuration: scope: ...
0
votes
1answer
184 views

WSL version 1 Unable to run ansible, module missing

I'm trying to run an Ansible playbook in Ubuntu 18.04.1 under version 1 of the Windows Subsystem for Linux (Windows 10 ver 10.0.18363.751), but I keep getting the error: ImportError: No module named ...
2
votes
0answers
1k views

Dependencies problem when installing ansible in ubuntu 18.04

I try to reinstall ansible in my ubuntu18.04 laptop. I've got this dependencies problem : $ LANG=C sudo apt-get install ansible Reading package lists... Done Building dependency tree Reading ...
1
vote
2answers
2k views

How to connect Ansible to AWS-EC2 via ssh

I want to connect ansible to EC2 via ssh. I created a key pair on my local machine(ubuntu) and copied it to my EC2 instances using ssh-copy-id. The copy was successful, but I get the error below when ...