[ansible-project] Get role names for multiple plays in the same playbook file

2024-07-29 Thread ricardo barbosa
Hello everyone I have a playbook called "play.yml" with three plays and I would like to get the names of the roles that are applied to a certain host. Let's say I have a host called host01 and this host is in the two groups: GROUP01 and GROUP03 --play.yml - name: play 1

Re: [ansible-project] Re: Issue about defining variable within the task does not work

2024-01-15 Thread ricardo barbosa
>> ansible_ssh_user: "{{ amis[*hostvars['localhost'].*aws_region][ >> *hostvars['localhost'].*os_version].user }}" >> >> I'm reasonably sure (but could be wrong) that the "amis" dict is >> defined, because it isn't a host variable. That's

[ansible-project] Re: Issue about defining variable within the task does not work

2024-01-15 Thread ricardo barbosa
e. That's different from set_fact-derived > variables which are both host-specific and template resolved at their > creation. > > Let us know if this resolves your issue. > -- > Todd > > > On Saturday, January 13, 2024 at 9:40:57 AM UTC-5 ricardo barbosa wrote: >

[ansible-project] Issue about defining variable within the task does not work

2024-01-13 Thread ricardo barbosa
Hello guys I created the following structure: ``` amis: us-east-1: amazonlinux: owner_id: "137112412989" x86_64: "ami-01bc990364452ab3e" arm64: "ami-0900a8f768a21540a" user: "ec2-user" ubuntu: owner_id: "099720109477" x86_64: "ami-0fc5d935ebf8bc3bc"

[ansible-project] Playbook to create gmail account

2022-10-21 Thread ricardo barbosa
Hello all, Does Anyone know if possible to create a playbook to create a Gmail account? I found only GCP module to create infra-structure in GCP Regards -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

[ansible-project] Re: Playbook to run lambda not work module community.aws.execute_lambda

2022-09-29 Thread ricardo barbosa
On Thursday, August 25, 2022 at 8:15:30 AM UTC-4 ricardo barbosa wrote: > Hi guys, > > I'm trying to run a playbook to execute lambda, but not work. > I'm follow this > https://docs.ansible.com/ansible/latest/collections/community/aws/execute_lambda_module.html#parameter-payload &g

[ansible-project] Playbook to run lambda not work module community.aws.execute_lambda

2022-08-25 Thread ricardo barbosa
Hi guys, I'm trying to run a playbook to execute lambda, but not work. I'm follow this https://docs.ansible.com/ansible/latest/collections/community/aws/execute_lambda_module.html#parameter-payload. My playbook is -- execute-lambda.yml ---