Browse Source

local facts with role_name

covid-videoplattform
parent
commit
025bc79af0
2 changed files with 1 additions and 3 deletions
  1. +1
    -1
      tasks/local_facts.yaml
  2. +0
    -2
      vars/main.yaml

+ 1
- 1
tasks/local_facts.yaml View File

@@ -8,7 +8,7 @@
- name: set ansible local fact - name: set ansible local fact
copy: copy:
content: "{{_local_facts|to_json}}" content: "{{_local_facts|to_json}}"
dest: /etc/ansible/facts.d/{{_local_facts_name}}.fact
dest: /etc/ansible/facts.d/{{role_name}}.fact
register: _local_facts_set register: _local_facts_set


- name: Gathering Facts - name: Gathering Facts


+ 0
- 2
vars/main.yaml View File

@@ -1,6 +1,4 @@
--- ---

_local_facts_name: buildbot
_local_facts: _local_facts:
database_password: "{% if not ansible_local.buildbot.database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local.buildbot.database_password }}{% endif %}" database_password: "{% if not ansible_local.buildbot.database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local.buildbot.database_password }}{% endif %}"




Loading…
Cancel
Save