This commit is contained in:
parent
abf241461e
commit
b0d01ca8ec
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
remote_user: vagrant
|
remote_user: user
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include vincentdcmps.test"
|
- name: "Include vincentdcmps.test"
|
||||||
|
@ -14,7 +14,7 @@ platforms:
|
|||||||
source:
|
source:
|
||||||
type: image
|
type: image
|
||||||
mode: pull
|
mode: pull
|
||||||
alias: rocky9
|
alias: rockylinux/9
|
||||||
|
|
||||||
- name: debian
|
- name: debian
|
||||||
source:
|
source:
|
||||||
@ -26,7 +26,7 @@ platforms:
|
|||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
connection_options:
|
connection_options:
|
||||||
ansible_ssh_user: ubuntu
|
ansible_ssh_user: user
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
log: true
|
log: true
|
||||||
lint:
|
lint:
|
||||||
@ -35,12 +35,12 @@ provisioner:
|
|||||||
host_vars:
|
host_vars:
|
||||||
archlinux:
|
archlinux:
|
||||||
user:
|
user:
|
||||||
name: ubuntu
|
name: user
|
||||||
rocky9:
|
rocky9:
|
||||||
user:
|
user:
|
||||||
name: ubuntu
|
name: user
|
||||||
debian:
|
debian:
|
||||||
user:
|
user:
|
||||||
name: ubuntu
|
name: user
|
||||||
verifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- hosts: archlinux
|
- hosts: archlinux
|
||||||
remote_user: vagrant
|
remote_user: root
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Init pacman
|
- name: Init pacman
|
||||||
ansible.builtin.raw: |
|
ansible.builtin.raw: |
|
||||||
@ -9,4 +9,30 @@
|
|||||||
pacman-key --populate archlinux
|
pacman-key --populate archlinux
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
- name: "install python on arch"
|
||||||
|
raw: pacman -Sy python --noconfirm
|
||||||
|
|
||||||
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user