summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-05-21 19:04:57 +0200
committerjerome <jerome@xlinfo.fr>2025-05-21 19:04:57 +0200
commit002b491d555d0bf845ebafef903f8d2deddf7165 (patch)
tree415e651f319413085b5d35423d7aabce538453c2
parent9ae4ceef865b18fb0a46e72948969847072de398 (diff)
downloadterraform-ansible-002b491d555d0bf845ebafef903f8d2deddf7165.tar.gz
terraform-ansible-002b491d555d0bf845ebafef903f8d2deddf7165.zip
-rw-r--r--playbooks/lamp/tasks/main.yml4
-rw-r--r--playbooks/lxc.yml4
2 files changed, 3 insertions, 5 deletions
diff --git a/playbooks/lamp/tasks/main.yml b/playbooks/lamp/tasks/main.yml
index 19ed245..004e0de 100644
--- a/playbooks/lamp/tasks/main.yml
+++ b/playbooks/lamp/tasks/main.yml
@@ -39,9 +39,7 @@
mode: 0644
- name: installation de phpmyadmin
- vars:
- - apache: '{{apache}}'
- include_tasks:
+ include_tasks:
file: '{{ansible_os_family}}-phpmyadmin.yml'
apply:
tags: phpmyadmin
diff --git a/playbooks/lxc.yml b/playbooks/lxc.yml
index 666cfb3..18a682e 100644
--- a/playbooks/lxc.yml
+++ b/playbooks/lxc.yml
@@ -22,7 +22,7 @@
template_options: --dist rockylinux --release 9 --arch amd64
state: started
container_command: |
- sleep 5
+ dnf check-update
dnf install -y openssh-server python3
systemctl enable --now sshd
@@ -34,7 +34,7 @@
template_options: --dist debian --release bookworm --arch amd64
state: started
container_command: |
- sleep 5
+ apt update
apt install -y openssh-server python3
systemctl enable --now ssh