diff --git a/linux/os/create_user_ssh/main.yml b/linux/os/create_user_ssh/main.yml deleted file mode 100644 index f6b9e04..0000000 --- a/linux/os/create_user_ssh/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -- name: Create New User - hosts: "{{'hostname'}}" - become: true - gather_facts: false - vars: -# Define your username and password here that you want to create on target hosts. - username: hola - userpass: password - supergroup: sudoers - tasks: - - name: Create User - ansible.builtin.user: - name: "{{ username }}" - state: present - shell: /bin/bash - password: "{{ userpass | password_hash('sha512') }}" - update_password: on_create - groups: "{{ super_group }}" - append: yes diff --git a/linux/os/install_package.yml b/linux/os/install_package.yml index d1e9ecb..677c15f 100644 --- a/linux/os/install_package.yml +++ b/linux/os/install_package.yml @@ -1,6 +1,9 @@ --- - hosts: "{{ hosts_servers }}" gather_facts: no + remote_user: awx + become: yes + become_method: sudo tasks: - name: Package installation apt: diff --git a/linux/os/multiples.yml b/linux/os/multiples.yml deleted file mode 100644 index ffdc1dc..0000000 --- a/linux/os/multiples.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- hosts: "{{ hosts_servers }}" - gather_facts: no - tasks: - - name: Package installation - apt: - name: - - "{{ package_name }}" - - "{{ package_name }}" - - "{{ package_name }}" - - "{{ package_name }}" - - "{{ package_name }}" - - "{{ package_name }}" - state: absent \ No newline at end of file