From: Oleg Broytman Date: Fri, 28 Jun 2019 22:21:29 +0000 (+0300) Subject: Feat(debian-update-all-apt): Use dynamic list of hosts X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4a7a82c49e38ba558bb6dc941e9dec61ddeca7dc;p=ansible.git Feat(debian-update-all-apt): Use dynamic list of hosts Pass the list of hosts from the command line: `ansible-playbook -e hosts=localhost -v debian-update-all-apt.yml` Default is `all`. --- diff --git a/playbooks/debian-update-all-apt.yml b/playbooks/debian-update-all-apt.yml index 223eaa2..23a3d5d 100644 --- a/playbooks/debian-update-all-apt.yml +++ b/playbooks/debian-update-all-apt.yml @@ -1,5 +1,5 @@ - name: Update Debian systems with apt - hosts: all + hosts: "{{ hosts | default('all') }}" become: yes gather_facts: false tasks: