become taks

master
alecsandruchirosca 9 months ago
parent c17ae75c06
commit c8cf80e281
  1. 4
      create_deployment_user.yml

@ -1,12 +1,10 @@
- name: Create required deployment users
hosts: all
become: yes # Run tasks with root/sudo privileges
sudo: yes # Run tasks with sudo privileges
tasks:
- name: Create Ansible user
become_user: root
become: yes
user:
name: ansible # Username
groups: sudo

Loading…
Cancel
Save