]> git.phdru.name Git - ansible.git/commitdiff
Feat(init-local-phd): Allow to run on other host(s)
authorOleg Broytman <phd@phdru.name>
Tue, 24 Mar 2020 22:15:49 +0000 (01:15 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 24 Mar 2020 22:15:49 +0000 (01:15 +0300)
playbooks/debian/init-local-phd.yml
playbooks/redhat/init-local-phd.yml

index a9a8aa2a64389f08569b82698ad678f739372a48..1b24d801a94cc009836cd9d8cf908eb122be138b 100644 (file)
@@ -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
index 9ed9e9dd6f96497393cfaa896c5dbad6f72df147..bbb795897bd319292983104f86b93c1f617e0fae 100644 (file)
@@ -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