mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-02 03:24:04 +07:00
Fix idempotence
This commit is contained in:
1 parent
bee0cb9a66
commit
d1dbdb83d4
1 file changed
-3
@@ -3,9 +3,6 @@
|
||||
- name: APT | Install nginx
|
||||
apt: pkg={{ nginx_apt_package }} state=latest update_cache=yes cache_valid_time=3600
|
||||
|
||||
- name: SERVICE | Ensure nginx is started
|
||||
service: name=nginx state=started
|
||||
|
||||
- name: SHELL | Get Nginx version
|
||||
shell: nginx -v 2>&1 | sed -r 's#.*/##;' | cut -d ' ' -f 1
|
||||
register: nginx_version
|
||||
|
||||
Reference in new issue
Block a user