From: Oleg Broytman Date: Tue, 24 Mar 2020 22:15:49 +0000 (+0300) Subject: Feat(init-local-phd): Allow to run on other host(s) X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=07d688c691bb93ddc29bdd4d3479b847a830d3ca;p=ansible.git Feat(init-local-phd): Allow to run on other host(s) --- diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index a9a8aa2..1b24d80 100644 --- a/playbooks/debian/init-local-phd.yml +++ b/playbooks/debian/init-local-phd.yml @@ -1,5 +1,5 @@ - name: Update local user phd - hosts: localhost + hosts: "{{ hosts | default('localhost') }}" gather_facts: false vars: system_groups: root,adm,disk,cdrom,floppy,sudo,audio,www-data,video,plugdev,staff,users,Debian-exim,fuse,sambashare,bluetooth,davfs2,vboxusers,input diff --git a/playbooks/redhat/init-local-phd.yml b/playbooks/redhat/init-local-phd.yml index 9ed9e9d..bbb7958 100644 --- a/playbooks/redhat/init-local-phd.yml +++ b/playbooks/redhat/init-local-phd.yml @@ -1,5 +1,5 @@ - name: Update local user phd - hosts: localhost + hosts: "{{ hosts | default('localhost') }}" gather_facts: false vars: system_groups: root,wheel,adm,disk,cdrom,floppy,audio,video,users,mail,input