Questions tagged [ansible-galaxy]

Ansible galaxy is a portal that contains various ansible-roles that reside on github and that could be installed locally using the ansible-galaxy command. This tag could be added to questions that are about problems that could arise when roles could not be removed or added from this portal.

6 questions
5
votes
1 answer

How to remove a non-existing GitHub Ansible role from Galaxy?

According to this documentation it is possible to remove a role from Galaxy, but the following fails: ansible-galaxy login succeeded ansible-galaxy delete 030 https://github.com/030/ansible-firewall resulted in: ERROR! Galaxy user 030 does not…
030
  • 13,383
  • 17
  • 76
  • 178
2
votes
1 answer

How to verify hashes of Ansible Galaxy dependencies?

From a security perspective, I don't like the idea of relying only on Git tags, as they could be moved later. Unfortunately, I'm not aware of an official solution to enforce checks. This is the best that I could come up with: # requirements.yaml: -…
Philipp Claßen
  • 1,675
  • 3
  • 18
  • 30
1
vote
2 answers

Ansible authorized copy from remote source to remote destination

How to use ansible authorized_key to authorize a ServerA (not the controller machine) to access Server B. Scenario: Need a playbook to execute from a ansible controller that should append id_rsa.pub of a specific user from a remote ssh ServerA (no…
AVS
  • 133
  • 1
  • 5
1
vote
1 answer

Unable to login as `ubuntu` user on ec2 instance spawned from auto scaling group

Utilizing Ansible AWS modules, I'm creating an AMI from an existing EC2 instance where I am able to ssh with both my user and default account (ubuntu). After the AMI is in a ready state, I then create a launch template with the new AMI and an…
Chris
  • 11
  • 1
1
vote
1 answer

ansible mysql query not showing results

I have used community.mysql collection and was able to run a query against the database. --- - name: Get stats of a file hosts: localhost become: true tasks: - name: run mysql query community.mysql.mysql_query: login_user:…
1
vote
2 answers

ansible & jinja2: How to reference JSON structure items whose keys are variables?

I am using ansible's community.aws.iam_server_certificate_info module to get information about a server certificate on aws ec2, and registering it as a variable "server_cert_info_result" Unfortunately, this module returns a JSON structure with a…
Life5ign
  • 170
  • 9