Questions tagged [ansible-inventory]

Use this tag if a question is about ansible-inventory

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
1k views

Ansible/AWS dynamic inventory -- How to create groups based on tags?

I am trying to create custom groups, based on tags. I am using this doc as a reference: https://docs.ansible.com/ansible/latest/plugins/inventory.html#inventory-plugins As a baseline, in my aws_ec2....
synth45's user avatar
  • 71
1 vote
1 answer
56 views

ansible_become has no effect despite the ability to execute sudo on GCP hosts

Say I want to execute the following command on target hosts (deployed on GCP): ansible all -a "head -1 /etc/shadow". The command demands the root access. With the default Ansible ...
SkogensKonung's user avatar
0 votes
0 answers
94 views

Ansible-Playbook to install Kubernetes cluster gives GPG error

For my virtualisation class, our lab assignment at the moment is to create a kubernete's cluster with 3 VM's / Nodes. I have a fourth machine where i installed ansible on that sends all correct ...
user42818's user avatar