diff --git a/playbooks/captica-automation-timescaledb.yml b/playbooks/captica-automation-timescaledb.yml index bd9c59d..e96a99c 100644 --- a/playbooks/captica-automation-timescaledb.yml +++ b/playbooks/captica-automation-timescaledb.yml @@ -35,6 +35,15 @@ - vim - fzf +- hosts: "timescaledb" + vars: + hostname: timescaledb + lxc_ip: 192.168.150.130 + tools_install_users: + - root + - ansible + tasks: + - import_tasks: "../roles/common/tasks/common.yml" - hosts: "timescaledb" vars: diff --git a/roles/common/tasks/common.yml b/roles/common/tasks/common.yml new file mode 100644 index 0000000..57c058a --- /dev/null +++ b/roles/common/tasks/common.yml @@ -0,0 +1,23 @@ + - name: LANG in '.profile' für root analog Locale setzen + tags: always + lineinfile: + path: /root/.profile + regexp: '^export LANG=en_US.UTF-8' + line: 'export LANG=en_US.UTF-8' + state: present + + - name: LANG in '.profile' für Benutzer alpha analog Locale setzen + tags: always + lineinfile: + path: /home/alpha/.profile + regexp: '^export LANG=en_US.UTF-8' + line: 'export LANG=en_US.UTF-8' + state: present + + - name: LANG in '.profile' für Benutzer ansible analog Locale setzen + tags: always + lineinfile: + path: /home/ansible/.profile + regexp: '^export LANG=en_US.UTF-8' + line: 'export LANG=en_US.UTF-8' + state: present