Compare commits
3 Commits
v0.0.7l-fr
...
v0.0.7n-ps
Author | SHA1 | Date | |
---|---|---|---|
|
de057fad9b | ||
|
30c7275ba6 | ||
|
33529f2781 |
@@ -1,12 +1,14 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
- r-ext
|
- r-ext
|
||||||
- snmp-agent
|
- zabbix-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
# - syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
@@ -9,5 +10,5 @@
|
|||||||
- ssh-cli
|
- ssh-cli
|
||||||
# - syslog-cli
|
# - syslog-cli
|
||||||
- dhcp
|
- dhcp
|
||||||
- snmp-agent
|
- zabbix-cli
|
||||||
- post
|
- post
|
||||||
|
20
roles/awx-user-cli/tasks/main.yml
Normal file
20
roles/awx-user-cli/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Creation user awx
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: awx
|
||||||
|
groups: sudo
|
||||||
|
append: yes
|
||||||
|
shell: /bin/bash
|
||||||
|
|
||||||
|
- name: Get awx key_pub
|
||||||
|
get_url:
|
||||||
|
url: s-adm.gsb.adm/gsbstore/id_rsa_awx.pub
|
||||||
|
dest: /tmp
|
||||||
|
|
||||||
|
|
||||||
|
- name: Set authorized key taken from file /tmp
|
||||||
|
ansible.posix.authorized_key:
|
||||||
|
user: awx
|
||||||
|
state: present
|
||||||
|
key: "{{ lookup('file', '/tmp/id_rsa_awx.pub') }}"
|
14
roles/awx-user/tasks/main.yml
Normal file
14
roles/awx-user/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: Creation user awx, cle SSH et group sudo
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: awx
|
||||||
|
groups: sudo
|
||||||
|
append: yes
|
||||||
|
shell: /bin/bash
|
||||||
|
generate_ssh_key: yes
|
||||||
|
|
||||||
|
- name: Copie cle publique dans gsbstore
|
||||||
|
copy:
|
||||||
|
src: /home/awx/.ssh/id_rsa.pub
|
||||||
|
dest: /var/www/html/gsbstore/id_rsa_awx.pub
|
||||||
|
remote_src: yes
|
@@ -8,6 +8,7 @@
|
|||||||
apt:
|
apt:
|
||||||
deb: "/tmp/filebeat-{{ BEATVER }}-amd64.deb"
|
deb: "/tmp/filebeat-{{ BEATVER }}-amd64.deb"
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
- name: Chgt filebeat.yml - localhost:9200 - Elastic
|
- name: Chgt filebeat.yml - localhost:9200 - Elastic
|
||||||
replace:
|
replace:
|
||||||
path: /etc/filebeat/filebeat.yml
|
path: /etc/filebeat/filebeat.yml
|
||||||
@@ -34,6 +35,17 @@
|
|||||||
# copy:
|
# copy:
|
||||||
# src: filebeat.yml
|
# src: filebeat.yml
|
||||||
# dest: /etc/filebeat/filebeat.yml
|
# dest: /etc/filebeat/filebeat.yml
|
||||||
|
=======
|
||||||
|
- name: sorie pou debug
|
||||||
|
fail:
|
||||||
|
msg: "packet installe"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Changement du fichier de conf
|
||||||
|
copy:
|
||||||
|
src: filebeat.yml
|
||||||
|
dest: /etc/filebeat/filebeat.yml
|
||||||
|
>>>>>>> d16ccae (maj pour elk-filebeat-cli)
|
||||||
|
|
||||||
- name: Configuration de filebeat
|
- name: Configuration de filebeat
|
||||||
shell: filebeat modules enable system
|
shell: filebeat modules enable system
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
stork_db_user: "stork-server"
|
stork_db_user: "stork-server"
|
||||||
stork_db_passwd: "Azerty1+"
|
stork_db_passwd: "Azerty1+"
|
||||||
|
@@ -1,11 +1,13 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
# include: config.yml
|
# include: config.yml
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
# - zabbix-cli
|
- zabbix-cli
|
||||||
- goss
|
- goss
|
||||||
- dns-master
|
- dns-master
|
||||||
- webautoconf
|
- webautoconf
|
||||||
# - elk-filebeat-cli
|
# - elk-filebeat-cli
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
#vars:
|
#vars:
|
||||||
#glpi_version: "10.0.11"
|
#glpi_version: "10.0.11"
|
||||||
#glpi_dir: "/var/www/html/glpi"
|
#glpi_dir: "/var/www/html/glpi"
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: yes
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
|
Reference in New Issue
Block a user