2022-10-09 17:43:15 +00:00
|
|
|
- hosts: archlinux
|
2022-10-16 20:06:08 +00:00
|
|
|
remote_user: root
|
2022-10-09 17:43:15 +00:00
|
|
|
become: true
|
2022-10-16 20:06:08 +00:00
|
|
|
gather_facts: false
|
2022-10-09 17:43:15 +00:00
|
|
|
tasks:
|
|
|
|
- name: Init pacman
|
|
|
|
ansible.builtin.raw: |
|
|
|
|
pacman-key --init
|
|
|
|
pacman-key --populate archlinux
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2022-10-16 20:06:08 +00:00
|
|
|
- name: "install python on arch"
|
|
|
|
raw: pacman -Sy python --noconfirm
|
2022-10-09 17:43:15 +00:00
|
|
|
|
2022-10-16 20:06:08 +00:00
|
|
|
- hosts: rocky9
|
|
|
|
remote_user: root
|
|
|
|
become: true
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: "install python for rocky"
|
|
|
|
raw: dnf install python3 --assumeyes
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: debian
|
|
|
|
remote_user: root
|
|
|
|
become: true
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: "install python for debian"
|
|
|
|
raw: apt install python3 --assume-yes
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
become: true
|
|
|
|
tasks:
|
|
|
|
- name: create user
|
|
|
|
user:
|
|
|
|
name: user
|
|
|
|
state: present
|