Thank you very much for the help
On Monday, 25 May 2020 01:16:43 UTC-4, Vladimir Botka wrote:
>
> On Sun, 24 May 2020 20:31:12 -0700 (PDT)
> Andrew Morgan > wrote:
>
> > > > 1) get the mac address
> > > > 2) get the subnet
> > > >
> > > > ---
> > > > - hosts: dev
> > > > become: true
>
Thank you , this actually worked, but the issue is that it presents another
MAC address from the one in AWS, so I am still getting an error detailed
below:
22:00:0b:0b:97:4e is the MAC address from debug, and 22:00:0b:0b:97:4e is
the MAC from aws metadata.
changed: [deVPN]
TASK [debug]
On Sun, 24 May 2020 20:31:12 -0700 (PDT)
Andrew Morgan wrote:
> > > 1) get the mac address
> > > 2) get the subnet
> > >
> > > ---
> > > - hosts: dev
> > > become: true
> > > #connection: local
> > > gather_facts: true
> > Run the command below a see what "facts" are available
This is the output:
fatal: [deVPN]: FAILED! => changed=true
cmd: |-
ansible dev -m setup
delta: '0:00:00.033604'
end: '2020-05-24 23:29:51.883830'
msg: non-zero return code
rc: 127
start: '2020-05-24 23:29:51.850226'
stderr: '/bin/bash: ansible: command not found'
On Sun, 24 May 2020 16:55:52 -0700 (PDT)
Andrew Morgan wrote:
> 1) get the mac address
> 2) get the subnet
>
> ---
> - hosts: dev
> become: true
> #connection: local
> gather_facts: true
Run the command below a see what "facts" are available when "gather_facts:
true" is enabled.