Compare commits

...

3 Commits

Author SHA1 Message Date
root
8568463dc7 goss s-itil pages web 2024-01-19 10:01:28 +01:00
root
d58d3ae8d7 actualisation test goss s-itil 2024-01-19 09:57:01 +01:00
root
16af48fbf3 test playbook docker 2024-01-19 08:55:25 +01:00
3 changed files with 94 additions and 62 deletions

View File

@@ -1,59 +1,87 @@
#package:
# systemd-journal-remote:
# installed: true
file: file:
/var/www/html/glpi: /etc/nginx/sites-enabled/default:
exists: true exists: false
mode: "0755" contents: []
owner: www-data /etc/nginx/sites-enabled/glpi:
group: www-data exists: true
filetype: directory mode: "0644"
owner: root
/var/www/html/glpicli: group: root
exists: true filetype: file
mode: "0775" contents: []
owner: www-data /var/www/html/glpi:
group: www-data exists: true
filetype: directory mode: "0755"
owner: www-data
/var/www/html/glpi/plugins: group: www-data
exists: true filetype: directory
mode: "0777" contents: []
filetype: directory /var/www/html/glpicli:
exists: true
/var/www/html/glpicli/GLPI-Agent-1.7-x64.msi: mode: "0775"
exists: true owner: www-data
#mode: "0777" group: www-data
filetype: file filetype: directory
contents: []
/var/www/html/index.nginx-debian.html: /var/www/html/glpicli/GLPI-Agent-1.7-x64.msi:
exists: true exists: true
mode: "0775" mode: "0644"
owner: www-data owner: root
group: www-data group: root
filetype: file filetype: file
service: contents: []
mariadb:
enabled: true
running: true
nginx:
enabled: true
running: true
zabbix-agent:
enable: true
running: true
systemd-journal-upload.service:
enabled: true
running: true
port: port:
tcp:10050: tcp:22:
listening: true listening: true
ip: ip:
- 0.0.0.0 - 0.0.0.0
tcp:10050: tcp:80:
listening: true listening: true
ip: 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:
mariadb.service:
enabled: true
running: true
nginx:
enabled: true
running: true
php8.2-fpm.service:
enabled: true
running: true
ssh:
enabled: true
running: true
systemd-journal-upload:
enabled: true
running: true
zabbix-agent:
enabled: true
running: true
http:
http://s-itil.gsb.lan/:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
username: glpi
password: glpi
http://s-itil.gsb.lan/glpicli:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []

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

@@ -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