maj goss s-nxc
This commit is contained in:
parent
d75f4ffb3f
commit
df9d3c6c1c
@ -2,121 +2,139 @@ file:
|
|||||||
/root/nxc:
|
/root/nxc:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4096
|
#size: 4096
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: directory
|
filetype: directory
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/certs:
|
/root/nxc/certs:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4096
|
#size: 4096
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: directory
|
filetype: directory
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/config:
|
/root/nxc/config:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4096
|
#size: 4096
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: directory
|
filetype: directory
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/config/dynamic.yml:
|
/root/nxc/config/dynamic.yml:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 415
|
#size: 415
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/config/static.yml:
|
/root/nxc/config/static.yml:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 452
|
#size: 452
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/docker-compose.yml:
|
/root/nxc/docker-compose.yml:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
size: 2135
|
#size: 2135
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/nxc-debug.sh:
|
/root/nxc/nxc-debug.sh:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 64
|
#size: 64
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/nxc-prune.sh:
|
/root/nxc/nxc-prune.sh:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 110
|
#size: 110
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/nxc-start.sh:
|
/root/nxc/nxc-start.sh:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 34
|
#size: 34
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/root/nxc/nxc-stop.sh:
|
/root/nxc/nxc-stop.sh:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 32
|
#size: 32
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
/usr/local/bin/mkcert:
|
/usr/local/bin/mkcert:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
size: 4788866
|
#size: 4788866
|
||||||
owner: root
|
#owner: root
|
||||||
group: root
|
#group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
|
||||||
addr:
|
addr:
|
||||||
tcp://s-nxc.gsb.lan:8081:
|
tcp://s-nxc.gsb.lan:443:
|
||||||
reachable: true
|
reachable: true
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
|
||||||
port:
|
port:
|
||||||
tcp:22:
|
tcp:22:
|
||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- 0.0.0.0
|
- 0.0.0.0
|
||||||
|
|
||||||
tcp:80:
|
tcp:80:
|
||||||
listening: true
|
listening: true
|
||||||
ip: []
|
ip: []
|
||||||
|
|
||||||
tcp:443:
|
tcp:443:
|
||||||
listening: true
|
listening: true
|
||||||
ip: []
|
ip: []
|
||||||
tcp:8081:
|
|
||||||
listening: true
|
#tcp:8081:
|
||||||
ip:
|
#listening: true
|
||||||
- 0.0.0.0
|
#ip:
|
||||||
|
#- 0.0.0.0
|
||||||
|
|
||||||
interface:
|
interface:
|
||||||
enp0s3:
|
enp0s3:
|
||||||
exists: true
|
exists: true
|
||||||
addrs:
|
addrs:
|
||||||
- 192.168.99.7/24
|
- 192.168.99.7/24
|
||||||
mtu: 1500
|
mtu: 1500
|
||||||
|
|
||||||
enp0s8:
|
enp0s8:
|
||||||
exists: true
|
exists: true
|
||||||
addrs:
|
addrs:
|
||||||
- 172.16.0.7/24
|
- 172.16.0.7/24
|
||||||
mtu: 1500
|
mtu: 1500
|
||||||
|
|
||||||
http:
|
http:
|
||||||
https://s-nxc.gsb.lan:
|
https://s-nxc.gsb.lan:
|
||||||
status: 200
|
status: 200
|
||||||
|
@ -1,16 +1,21 @@
|
|||||||
---
|
---
|
||||||
- name: on recupere getdocker
|
- name: Récupérer et installer Docker
|
||||||
get_url:
|
hosts: localhost
|
||||||
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
become: yes # Utiliser l'élévation de privilèges
|
||||||
dest: /usr/local/bin
|
|
||||||
|
|
||||||
- name: on verifie si docker est installe
|
tasks:
|
||||||
stat:
|
- name: Télécharger le script getdocker.sh
|
||||||
path: /usr/bin/docker
|
get_url:
|
||||||
# command: which docker
|
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
||||||
register: docker_present
|
dest: /usr/local/bin/getdocker.sh
|
||||||
|
mode: 'a+x'
|
||||||
|
|
||||||
|
- name: Vérifier si Docker est installé
|
||||||
|
stat:
|
||||||
|
path: /usr/bin/docker
|
||||||
|
register: docker_present
|
||||||
|
|
||||||
|
- name: Installer Docker si absent
|
||||||
|
command: "bash /usr/local/bin/getdocker.sh"
|
||||||
|
when: not docker_present.stat.exists
|
||||||
|
|
||||||
- name: Execution du script getdocker si docker n'est pas deja installe
|
|
||||||
shell: bash /usr/local/bin/getdocker.sh
|
|
||||||
#when: docker_present.stdout.find('/usr/bin/docker') == -1
|
|
||||||
when: not docker_present.stat.exists
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user