summaryrefslogtreecommitdiffstats
path: root/molecule/ubuntu
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-11 13:43:26 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-11 14:22:05 +0100
commita4c0d3820db7b638c9f25c208414c29b9f9475e0 (patch)
tree177d910e3b77d0d84e2764561956eee630bab401 /molecule/ubuntu
parent8099c4ece193729e06e0465c8381ab5ccdcb455a (diff)
Restructure the molecule testing to match the playbook structure
Diffstat (limited to 'molecule/ubuntu')
-rw-r--r--molecule/ubuntu/converge.yml23
1 files changed, 16 insertions, 7 deletions
diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml
index 73f8268a..25b2a186 100644
--- a/molecule/ubuntu/converge.yml
+++ b/molecule/ubuntu/converge.yml
@@ -1,6 +1,6 @@
---
-- name: Converge
- hosts: ubuntu
+- name: "Bootstrap"
+ hosts: "ubuntu"
gather_facts: true
environment:
PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}"
@@ -10,6 +10,20 @@
- "ssh-ed25519 AAAA...fMo"
- "ssh-rsa AAAA...4I3"
user_groups: ["wheel", "test_group"]
+ roles:
+ - role: "hostname"
+ - role: "network"
+ - role: "user"
+ - role: "ssh"
+ - role: "password_policy"
+
+- name: "Configure"
+ hosts: "ubuntu"
+ gather_facts: true
+ environment:
+ PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}"
+ vars:
+ ansible_become_method: su
locales:
- "en_US.UTF-8 UTF-8"
timezone: "GMT"
@@ -24,11 +38,6 @@
firefox_install_browserpass: true
firefox_install_passff: true
roles:
- - role: "hostname"
- - role: "network"
- - role: "user"
- - role: "ssh"
- - role: "password_policy"
- role: "locales"
- role: "timezone"
- role: "jq"