Loading defaults/main.yaml +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,11 @@ firewall_basic_rules: from_ip: "192.168.10.55" firewall_host_rules: [] # hostname hostname_method_map: Debian: "systemd" Alpine: "openrc" # ntp ntp_server: "pool.ntp.org" timezone: "Europe/Amsterdam" Loading tasks/hostname.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,10 @@ - name: "set hostname" ansible.builtin.hostname: name: "{{ set_hostname | default(inventory_hostname_short) }}" use: "{{ hostname_use_method }}" use: "{{ hostname_use_method | default(hostname_method_map[ansible_os_family]) }}" tags: "hostname" # manage /etc/hosts file # manage /etc/hosts - name: "manage /etc/hosts file for hostname" ansible.builtin.lineinfile: path: "/etc/hosts" Loading tasks/main.yaml +7 −12 Original line number Diff line number Diff line Loading @@ -98,27 +98,22 @@ # snap - name: "snap - daemon" ansible.builtin.import_tasks: "snap/snap_daemon.yaml" when: "ansible_os_family == 'Debian'" tags: "snap" - name: "snap - package" ansible.builtin.import_tasks: "snap/snap_package.yaml" when: "snap_package is defined" when: - "snap_package is defined" - "ansible_os_family == 'Debian'" tags: "snap" # llpd - name: "lldpd" ansible.builtin.import_tasks: "lldpd.yaml" when: 'type == "vm" or type == "hw"' tags: "lldp" # flush handler - name: "flush handlers" ansible.builtin.meta: "flush_handlers" # lxd - name: "lxd" ansible.builtin.import_tasks: "lxd.yaml" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family == 'Debian'" tags: "lxd" # flush handler Loading Loading
defaults/main.yaml +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,11 @@ firewall_basic_rules: from_ip: "192.168.10.55" firewall_host_rules: [] # hostname hostname_method_map: Debian: "systemd" Alpine: "openrc" # ntp ntp_server: "pool.ntp.org" timezone: "Europe/Amsterdam" Loading
tasks/hostname.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,10 @@ - name: "set hostname" ansible.builtin.hostname: name: "{{ set_hostname | default(inventory_hostname_short) }}" use: "{{ hostname_use_method }}" use: "{{ hostname_use_method | default(hostname_method_map[ansible_os_family]) }}" tags: "hostname" # manage /etc/hosts file # manage /etc/hosts - name: "manage /etc/hosts file for hostname" ansible.builtin.lineinfile: path: "/etc/hosts" Loading
tasks/main.yaml +7 −12 Original line number Diff line number Diff line Loading @@ -98,27 +98,22 @@ # snap - name: "snap - daemon" ansible.builtin.import_tasks: "snap/snap_daemon.yaml" when: "ansible_os_family == 'Debian'" tags: "snap" - name: "snap - package" ansible.builtin.import_tasks: "snap/snap_package.yaml" when: "snap_package is defined" when: - "snap_package is defined" - "ansible_os_family == 'Debian'" tags: "snap" # llpd - name: "lldpd" ansible.builtin.import_tasks: "lldpd.yaml" when: 'type == "vm" or type == "hw"' tags: "lldp" # flush handler - name: "flush handlers" ansible.builtin.meta: "flush_handlers" # lxd - name: "lxd" ansible.builtin.import_tasks: "lxd.yaml" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family == 'Debian'" tags: "lxd" # flush handler Loading