Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Dick Visser
quick answer: no On Tue, 24 Aug 2021 at 16:36, Tony Wong wrote: > > quick question. is there a way to quickly rollback ? > > On Tuesday, August 24, 2021 at 7:33:23 AM UTC-7 Tony Wong wrote: >> >> ok thanks a lot. finally got it working. >> >> On Tuesday, August 24, 2021 at 6:41:25 AM UTC-7 Tony W

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
quick question. is there a way to quickly rollback ? On Tuesday, August 24, 2021 at 7:33:23 AM UTC-7 Tony Wong wrote: > ok thanks a lot. finally got it working. > > On Tuesday, August 24, 2021 at 6:41:25 AM UTC-7 Tony Wong wrote: > >> i dont have that in my pb. >> >> On Tuesday, August 24, 2021

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
ok thanks a lot. finally got it working. On Tuesday, August 24, 2021 at 6:41:25 AM UTC-7 Tony Wong wrote: > i dont have that in my pb. > > On Tuesday, August 24, 2021 at 6:40:40 AM UTC-7 ra...@linuxia.de wrote: > >> On 24/08/2021 15:30, Tony Wong wrote: >> > >> > any idea? why is sudo passwor

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
i dont have that in my pb. On Tuesday, August 24, 2021 at 6:40:40 AM UTC-7 ra...@linuxia.de wrote: > On 24/08/2021 15:30, Tony Wong wrote: > > > > any idea? why is sudo password needed? > Because you asked for that (become: yes) > > Regards > Racke > > > On Tuesday, August 24, 2021 at 5:56:47 A

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Stefan Hornburg (Racke)
On 24/08/2021 15:30, Tony Wong wrote: any idea? why is sudo password needed? Because you asked for that (become: yes) Regards Racke On Tuesday, August 24, 2021 at 5:56:47 AM UTC-7 Tony Wong wrote: ok corrected it --- - include_vars: vars/main.yml - name: creat

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
ok corrected it --- - include_vars: vars/main.yml - name: create s3 bucket s3_bucket: name: '{{ s3_bucket_name }}' public_access: block_public_acls: true ignore_public_acls: true block_public_policy: true restrict_public_buckets: true state: present encryption: "aws:kms" encryption_key_id: '{{ km

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Stefan Hornburg (Racke)
On 24/08/2021 14:24, Tony Wong wrote: it is still not working. With a little effort a sensible mind would discover that hosts: doesn't belong into task files. Just my two cents. Racke yaml checker says ok On Tuesday, August 24, 2021 at 5:13:11 AM UTC-7 jruar...@gmail.com wro

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
it is still not working. yaml checker says ok On Tuesday, August 24, 2021 at 5:13:11 AM UTC-7 jruar...@gmail.com wrote: > Remove the leading - character on the - hosts line. > > On Tue, Aug 24, 2021, 13:59 Tony Wong wrote: > >> ok so here is what i have >> >> s3_bucket.yml >> >> --- >> - hosts

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Jorge Rúa
Remove the leading - character on the - hosts line. On Tue, Aug 24, 2021, 13:59 Tony Wong wrote: > ok so here is what i have > > s3_bucket.yml > > --- > - hosts: localhost > name: create s3 bucket > become: yes > > roles: > - s3_bucket > > --

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Jorge Rúa
Splitting a single task into a role does not make much sense to me. But if you want to go ahead with it, just pass any variables you are currently using in your task, to the role. Something like this: - include_role: name: role-s3bucket-creator apply: delegate_to: localhost vars:

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Dick Visser
Did you read the reply? What do you want to achieve? What is the intention? Why do you say "break this play up into roles/tasks/variables etc."? On Tue, 24 Aug 2021 at 06:01, Tony Wong wrote: > > my variables are > > ansibletestbucket12345 > arn:aws:kms:us-west-1:462518063038:key/f164e76a-f6f8

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-23 Thread Tony Wong
my variables are ansibletestbucket12345 arn:aws:kms:us-west-1:462518063038:key/f164e76a-f6f8-4773-84dc-053a44b2678d prod s3 bucket util 32 atomdomain On Monday, August 23, 2021 at 7:07:36 AM UTC-7 Brian Coca wrote: > you are showing a playbook with a single task and no variables, there > is no

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-23 Thread Brian Coca
you are showing a playbook with a single task and no variables, there is not much to break up here On Fri, Aug 20, 2021 at 4:58 PM Tony Wong wrote: > > how do I break this play up into roles/tasks/variables etc > > > --- > - hosts: localhost > tasks: > - name: create s3 bucket > s3_bu

[ansible-project] break this up into tasks and roles and variables

2021-08-20 Thread Tony Wong
how do I break this play up into roles/tasks/variables etc --- - hosts: localhost tasks: - name: create s3 bucket s3_bucket: name: ansibletestbucket12345 public_access: block_public_acls: true ignore_public_acls: true block_public_policy: true