changed vars

This commit is contained in:
rene
2022-03-15 20:20:56 +01:00
parent cf42c917a4
commit cf2bc2097e
5 changed files with 8 additions and 7 deletions

View File

@@ -1,11 +1,11 @@
snmp-user: Debian-snmp
redis:
redis_pkgs:
packages:
- package: "redis-server"
- package: "redis-tools"
postgres:
postgres_pkgs:
packages:
- package: "libpq-dev"
- package: "postgresql"

View File

@@ -1,11 +1,11 @@
snmp-user: Debian-snmp
redis:
redis_pkgs:
packages:
- package: "redis-server"
- package: "redis-tools"
postgres:
postgres_pkgs:
packages:
- package: "libpq-dev"
- package: "postgresql"

View File

@@ -6,4 +6,4 @@
state: latest
install_recommends: no
become: yes
with_items: "{{ postgres.packages }}"
with_items: "{{ postgres_pkgs.packages }}"

View File

@@ -6,4 +6,4 @@
state: latest
install_recommends: no
become: yes
with_items: "{{ redis.packages }}"
with_items: "{{ redis_pkgs.packages }}"

View File

@@ -1,6 +1,7 @@
# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
- include_vars: "{{ ansible_distribution|lower }}.yml"
tags: always
ignore_errors: True
- block:
- debug: