]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian-init-user-phd): Use dynamic list of hosts
authorOleg Broytman <phd@phdru.name>
Thu, 11 Jul 2019 23:29:49 +0000 (02:29 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2019 18:28:36 +0000 (21:28 +0300)
Default list is `servers`.

playbooks/debian-init-user-phd.yml

index f9fc295301d7e4c309ef9d1ceeb2b14bb5ad424d..32201c82deed7d5c3cc2579a3a897d3662da72c4 100644 (file)
@@ -1,5 +1,5 @@
 - name: Create user phd
-  hosts: all
+  hosts: "{{ hosts | default('servers') }}"
   gather_facts: false
   tasks:
     - name: Add user phd