- 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
become: true
group:
name: phd
- - name: user phd
+ - name: Create user phd
become: true
user:
name: phd