--- - name: Update hostname. become: yes command: hostname -F /etc/hostname - name: Reload Systemd. become: yes systemd: daemon-reload: yes - name: Restart Systemd resolved. become: yes systemd: service: systemd-resolved state: restarted - name: Apply netplan. become: yes command: netplan apply - name: Restart DHCP server. become: yes systemd: service: isc-dhcp-server state: restarted - name: Reload BIND9. become: yes systemd: service: bind9 state: reloaded - name: Restart Postfix. become: yes systemd: service: postfix state: restarted - name: Postmap transport. become: yes command: chdir: /etc/postfix/ cmd: postmap transport notify: Restart Postfix. - name: New aliases. become: yes command: newaliases - name: Restart Dovecot. become: yes systemd: service: dovecot state: restarted - name: Restart Apache2. become: yes systemd: service: apache2 state: restarted - name: Restart OpenVPN. become: yes systemd: service: openvpn@front state: restarted - name: Reload NAGIOS4. become: yes systemd: service: nagios4 state: reloaded - name: Import root PGP key. become: no command: gpg --import ~/.gnupg-root-pub.pem