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
>> 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
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:
>
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"
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
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
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
---