prepate molecul
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-10-16 22:06:08 +02:00
parent abf241461e
commit b0d01ca8ec
3 changed files with 34 additions and 8 deletions

View File

@ -1,6 +1,6 @@
---
- name: Converge
remote_user: vagrant
remote_user: user
hosts: all
tasks:
- name: "Include vincentdcmps.test"

View File

@ -14,7 +14,7 @@ platforms:
source:
type: image
mode: pull
alias: rocky9
alias: rockylinux/9
- name: debian
source:
@ -26,7 +26,7 @@ platforms:
provisioner:
name: ansible
connection_options:
ansible_ssh_user: ubuntu
ansible_ssh_user: user
ansible_become: true
log: true
lint:
@ -35,12 +35,12 @@ provisioner:
host_vars:
archlinux:
user:
name: ubuntu
name: user
rocky9:
user:
name: ubuntu
name: user
debian:
user:
name: ubuntu
name: user
verifier:
name: ansible

View File

@ -1,7 +1,7 @@
- hosts: archlinux
remote_user: vagrant
remote_user: root
become: true
gather_facts: true
gather_facts: false
tasks:
- name: Init pacman
ansible.builtin.raw: |
@ -9,4 +9,30 @@
pacman-key --populate archlinux
changed_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