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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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