Commit da32f3b4 authored by Pietsch, Martin's avatar Pietsch, Martin

replacement of . within the jailname

parent 15106a28
......@@ -8,7 +8,7 @@
- name: add container to inventory via sshjail connection
add_host:
name: "{{ inventory_hostname }}_{{ item.name | upper() }}"
ansible_ssh_host: "{{ item.name }}@{{ansible_ssh_host}}"
ansible_ssh_host: "{{ item.name | replace('.', '_') }}@{{ansible_ssh_host}}"
ansible_python_interpreter: "{{ ansible_python.executable }}"
ansible_connection: "sshjail"
when: (item.container | default(False)) == True
......@@ -21,7 +21,7 @@
name: "{{ inventory_hostname }}_{{ item.name | upper() }}"
ansible_python_interpreter: "{{ ansible_python.executable }}"
ansible_connection: "jail"
ansible_host: "{{ item.name }}"
ansible_host: "{{ item.name | replace('.', '_') }}"
when: (item.container | default(False)) == True
with_items: "{{ function_packages }}"
when: ansible_connection == "local" and container_used == True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment