This commit is contained in:
parent
d38494d67e
commit
35e5b08949
2
.ansible-lint
Normal file
2
.ansible-lint
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
skip_list:
|
||||||
|
- 'fcqn-builtins'
|
@ -39,7 +39,7 @@ hosts_file_snippets: []
|
|||||||
|
|
||||||
system_ipV6_disable: true
|
system_ipV6_disable: true
|
||||||
|
|
||||||
system_ssh_custom_host:
|
system_ssh_custom_host: []
|
||||||
# - host:
|
# - host:
|
||||||
# user:
|
# user:
|
||||||
# keyfile:
|
# keyfile:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: VincentDcmps
|
author: VincentDcmps
|
||||||
|
namespace: vincentdcmps
|
||||||
description:
|
description:
|
||||||
company:
|
company:
|
||||||
|
|
||||||
|
8
molecule/default/converge.yml
Normal file
8
molecule/default/converge.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
remote_user: vagrant
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "Include vincentdcmps.test"
|
||||||
|
include_role:
|
||||||
|
name: "vincentdcmps.system"
|
36
molecule/default/molecule.yml
Normal file
36
molecule/default/molecule.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
dependency:
|
||||||
|
name: galaxy
|
||||||
|
driver:
|
||||||
|
name: vagrant
|
||||||
|
provider:
|
||||||
|
name: libvirt
|
||||||
|
options:
|
||||||
|
memory: 512
|
||||||
|
cpus: 2
|
||||||
|
platforms:
|
||||||
|
- name: archlinux
|
||||||
|
box: archlinux/archlinux
|
||||||
|
# - name: rocky8
|
||||||
|
#box: generic/rocky8
|
||||||
|
- name: rocky9
|
||||||
|
box: generic/rocky9
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
connection_options:
|
||||||
|
ansible_ssh_user: vagrant
|
||||||
|
ansible_become: true
|
||||||
|
log: true
|
||||||
|
lint:
|
||||||
|
name: ansible-lint
|
||||||
|
inventory:
|
||||||
|
host_vars:
|
||||||
|
archlinux:
|
||||||
|
user:
|
||||||
|
name: vagrant
|
||||||
|
rocky9:
|
||||||
|
user:
|
||||||
|
name: vagrant
|
||||||
|
verifier:
|
||||||
|
name: ansible
|
12
molecule/default/prepare.yml
Normal file
12
molecule/default/prepare.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
- hosts: archlinux
|
||||||
|
remote_user: vagrant
|
||||||
|
become: true
|
||||||
|
gather_facts: true
|
||||||
|
tasks:
|
||||||
|
- name: Init pacman
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
pacman-key --init
|
||||||
|
pacman-key --populate archlinux
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
|
10
molecule/default/verify.yml
Normal file
10
molecule/default/verify.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
# This is an example playbook to execute Ansible tests.
|
||||||
|
|
||||||
|
- name: Verify
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Example assertion
|
||||||
|
ansible.builtin.assert:
|
||||||
|
that: true
|
@ -7,5 +7,5 @@
|
|||||||
become: true
|
become: true
|
||||||
register: service_stop
|
register: service_stop
|
||||||
failed_when:
|
failed_when:
|
||||||
- '"Could not find the requested service" not in service_stop.msg'
|
# - '"Could not find the requested service" not in service_stop.msg'
|
||||||
- service_stop.rc != 0
|
- service_stop.rc is defined and service_stop.rc != 0
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
line: "Server= {{ system_arch_local_mirror }}/repo/archlinux_$arch/$repo/os/$arch"
|
line: "Server= {{ system_arch_local_mirror }}/repo/archlinux_$arch/$repo/os/$arch"
|
||||||
state: present
|
state: present
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
when: system_arch_local_mirror is defined
|
when: system_arch_local_mirror
|
||||||
|
|
||||||
- name: stat ca-certificates
|
- name: stat ca-certificates
|
||||||
stat:
|
stat:
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Enable timesync
|
- name: Enable timesync
|
||||||
command: timedatectl set-ntp true
|
service:
|
||||||
|
name: systemd-timesyncd.service
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
become: true
|
become: true
|
||||||
args:
|
when: ansible_facts['os_family'] == 'Archlinux'
|
||||||
creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
|
|
||||||
|
|
||||||
- name: Set timezone and hardware clock
|
- name: Set timezone and hardware clock
|
||||||
timezone:
|
timezone:
|
||||||
|
Loading…
Reference in New Issue
Block a user