mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 12:38:11 +00:00
bitwarden
This commit is contained in:
parent
02e1838ad0
commit
6d03c8e29d
@ -72,8 +72,9 @@
|
|||||||
- zabbix-agent2
|
- zabbix-agent2
|
||||||
- zabbix-agent2-plugin-mongodb
|
- zabbix-agent2-plugin-mongodb
|
||||||
- zabbix-agent2-plugin-postgresql
|
- zabbix-agent2-plugin-postgresql
|
||||||
- zabbix-agent2-plugin-mssql
|
- zabbix-agent2-plugin-mysql
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
ignore_errors: true
|
||||||
when: inventory_hostname != 'nas.home.lan'
|
when: inventory_hostname != 'nas.home.lan'
|
||||||
|
|
||||||
- name: Reconfigure zabbix agent Server
|
- name: Reconfigure zabbix agent Server
|
||||||
|
17
playbooks/00_set_hostname.yml
Normal file
17
playbooks/00_set_hostname.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
- hosts: datacenter
|
||||||
|
name: Set hostname
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Modify hostyname
|
||||||
|
ansible.builtin.hostname:
|
||||||
|
name: "{{ inventory_hostname }}"
|
||||||
|
use: systemd
|
||||||
|
- name: Print all available facts
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_facts.architecture
|
||||||
|
- name: Print all available facts
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: "{{ ansible_distribution }}"
|
||||||
|
- name: Print all available facts
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_facts.distribution_version
|
Loading…
x
Reference in New Issue
Block a user