Compare commits

..

1 Commits

Author SHA1 Message Date
root
16af48fbf3 test playbook docker 2024-01-19 08:55:25 +01:00
3 changed files with 66 additions and 75 deletions

View File

@@ -1,72 +1,59 @@
#package:
# systemd-journal-remote:
# installed: true
file: file:
/etc/nginx/sites-enabled/default: /var/www/html/glpi:
exists: false exists: true
contents: [] mode: "0755"
/etc/nginx/sites-enabled/glpi: owner: www-data
exists: true group: www-data
mode: "0644" filetype: directory
owner: root
group: root /var/www/html/glpicli:
filetype: file exists: true
contents: [] mode: "0775"
/var/www/html/glpi: owner: www-data
exists: true group: www-data
mode: "0755" filetype: directory
owner: www-data
group: www-data /var/www/html/glpi/plugins:
filetype: directory exists: true
contents: [] mode: "0777"
/var/www/html/glpicli: filetype: directory
exists: true
mode: "0775" /var/www/html/glpicli/GLPI-Agent-1.7-x64.msi:
owner: www-data exists: true
group: www-data #mode: "0777"
filetype: directory filetype: file
contents: []
/var/www/html/glpicli/GLPI-Agent-1.7-x64.msi: /var/www/html/index.nginx-debian.html:
exists: true exists: true
mode: "0644" mode: "0775"
owner: root owner: www-data
group: root group: www-data
filetype: file filetype: file
contents: []
port:
tcp:22:
listening: true
ip:
- 0.0.0.0
tcp:80:
listening: true
ip:
- 0.0.0.0
tcp:3306:
listening: true
ip:
- 127.0.0.1
tcp:9000:
listening: true
ip:
- 127.0.0.1
tcp:10050:
listening: true
ip:
- 0.0.0.0
service: service:
mariadb.service: mariadb:
enabled: true enabled: true
running: true running: true
nginx:
enabled: true nginx:
running: true enabled: true
php8.2-fpm.service: running: true
enabled: true
running: true zabbix-agent:
ssh: enable: true
enabled: true running: true
running: true
systemd-journal-upload: systemd-journal-upload.service:
enabled: true enabled: true
running: true running: true
zabbix-agent: port:
enabled: true tcp:10050:
running: true listening: true
ip:
- 0.0.0.0
tcp:10050:
listening: true
ip:
- '::'

View File

@@ -5,9 +5,12 @@
dest: /usr/local/bin dest: /usr/local/bin
- name: on verifie si docker est installe - name: on verifie si docker est installe
command: which docker stat:
path: /usr/bin/docker
# command: which docker
register: docker_present register: docker_present
- name: Execution du script getdocker si docker n'est pas deja installe - name: Execution du script getdocker si docker n'est pas deja installe
shell: bash /usr/local/bin/getdocker.sh shell: bash /usr/local/bin/getdocker.sh
when: docker_present.stdout.find('/usr/bin/docker') == -1 #when: docker_present.stdout.find('/usr/bin/docker') == -1
when: not docker_present.stat.exists

View File

@@ -21,11 +21,11 @@
- name: Copie de dynamic.yml - name: Copie de dynamic.yml
copy: copy:
src: dynamic.yml src: dynamic.yml
dest: /root/nxc/config dest: /root/nxc/config
- name: Copie de docker-compose.yml - name: Copie de docker-compose.yml
copy: copy:
src: docker-compose.yml src: docker-compose.yml
dest: /root/nxc dest: /root/nxc
@@ -75,7 +75,8 @@
- name: création du réseau proxy - name: création du réseau proxy
command: docker network create proxy command: docker network create proxy
when: net_proxy.stdout.find('proxy') == -1 # when: net_proxy.stdout.find('proxy') == -1
when: "'proxy' not in net_proxy.stdout"
#- name: Démarrage du docker-compose... #- name: Démarrage du docker-compose...
#command: /bin/bash docker-compose up -d #command: /bin/bash docker-compose up -d