Compare commits

...

3 Commits

Author SHA1 Message Date
sio user
de057fad9b roles awx-usser et awx-user-cli 2024-01-30 12:04:15 +01:00
sio user
30c7275ba6 filebeat... 2024-01-30 11:25:20 +01:00
root
33529f2781 ajout role zabbix-cli pour vm à superviser & token à jour avec BD 2024-01-30 10:48:57 +01:00
10 changed files with 61 additions and 6 deletions

View File

@@ -1,12 +1,14 @@
---
- hosts: localhost
connection: local
become: yes
roles:
- base
- goss
- r-ext
- snmp-agent
- zabbix-cli
- ssh-cli
# - syslog-cli
- post

View File

@@ -1,6 +1,7 @@
---
- hosts: localhost
connection: local
become: yes
roles:
- base
@@ -9,5 +10,5 @@
- ssh-cli
# - syslog-cli
- dhcp
- snmp-agent
- zabbix-cli
- post

View 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') }}"

View 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

View File

@@ -8,6 +8,7 @@
apt:
deb: "/tmp/filebeat-{{ BEATVER }}-amd64.deb"
<<<<<<< HEAD
- name: Chgt filebeat.yml - localhost:9200 - Elastic
replace:
path: /etc/filebeat/filebeat.yml
@@ -34,6 +35,17 @@
# copy:
# src: 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
shell: filebeat modules enable system

View File

@@ -1,6 +1,8 @@
---
- hosts: localhost
connection: local
become: yes
roles:
- base

View File

@@ -1,6 +1,7 @@
---
- hosts: localhost
connection: local
become: yes
vars:
stork_db_user: "stork-server"
stork_db_passwd: "Azerty1+"

View File

@@ -1,11 +1,13 @@
---
- hosts: localhost
connection: local
become: yes
# include: config.yml
roles:
- base
# - zabbix-cli
- goss
- zabbix-cli
- goss
- dns-master
- webautoconf
# - elk-filebeat-cli

View File

@@ -1,7 +1,7 @@
---
- hosts: localhost
connection: local
become: yes
#vars:
#glpi_version: "10.0.11"
#glpi_dir: "/var/www/html/glpi"

View File

@@ -1,7 +1,8 @@
---
- hosts: localhost
connection: local
become: yes
roles:
- base
- goss