The nginx package gets installed with "update_cache: true" afterwards anyway, so the apt-get update step shouldn't be necessary.
5 lines
119 B
YAML
5 lines
119 B
YAML
- name: Restart `nginx.service`
|
|
ansible.builtin.systemd:
|
|
name: nginx.service
|
|
state: restarted
|
|
become: true
|