Questions tagged [ansible]

48 questions
5
votes
1 answer

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 on host raspi6.local is using the…
Pascal Klein
  • 96
  • 1
  • 1
  • 6
4
votes
1 answer

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, and it starts updating packages :- Configuring…
karan
  • 41
  • 1
  • 2
3
votes
1 answer

"[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: [localhost]: FAILED! => {"changed": false, "cmd":…
demetri
  • 31
  • 2
2
votes
2 answers

How to redirect output to a text file in bash and have it show in the terminal at the same time?

If I use the text re-directors > and >> they output to a text file which is fine for long term logging but, I also need them to be present on screen in the traditional Standard Input, Standard Output format as I'm running code through the shell…
Michael
  • 51
  • 1
  • 1
  • 4
2
votes
0 answers

What's the difference between dist-upgrade and upgrading /usr/lib/update-notifier/apt-check --package-names?

What is the difference between upgrading packages using the dist-upgrade and upgrading the packages from /usr/lib/update-notifier/apt-check --package-names ? The reason I'm asking is, the machine I'm upgrading is running the service…
N. J
  • 131
  • 3
2
votes
1 answer

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 in advance :)
AKASH-29
  • 23
  • 1
  • 3
2
votes
2 answers

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 simple echo is working fine. sed -n "s/\(…
2
votes
2 answers

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 msttcorefonts/accepted-mscorefonts-eula select…
reducing activity
  • 951
  • 2
  • 19
  • 45
2
votes
0 answers

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 state information... Done Some packages could not…
Cedricici
  • 21
  • 4
2
votes
2 answers

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 I want to connect to my instance: Failed to…
user1048281
  • 23
  • 1
  • 4
1
vote
0 answers

Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection

I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host. Unfortunately, I keep getting the following error no matter what I…
1
vote
1 answer

How would I autoinstall 22.04 from USB?

What the best way using Subquitity/Seed/Cloudinit to auto install an Ubuntu Desktop 22.04 image? Our staff use Ubuntu and rather than keeping one fat image lying about which is time consuming to update I would rather use files to auto install and…
1
vote
0 answers

Make python3.10 as default python. Python3 is causing problems while running ansible scripts

I want to set python3.10 as default python. I want to do this because I am getting error while running ansible scripts even if the yaml files are having valid syntax. while scanning a simple key", key.mark, yaml.scanner.ScannerError: while scanning…
Samvid
  • 11
  • 2
1
vote
1 answer

Samba Share Configured by Ansible Not Accessible

I am attempting to administer to Samba Shares' on a Ubuntu 20.04 running Samba 4.13.17-Ubuntu. I have an Ansible playbook that writes my Samba config to smb.conf and I am adding writable & browseable as yes When I review the file in smb.conf I…
1
vote
1 answer

apt update issues via docker container ansible playbook

I have been trying to run an ansible playbook via a docker container, However I'm having issues with sudo apt update currently running ubuntu 18.04: I’ve also tried to SSH into each VM (which isn't an issue) and apt update as well.
1
2 3 4