Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 29, 2023
1 parent 71e3369 commit bb81c5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions tasks/apt_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Update APT cache
apt:
update_cache: true
register: noobient_apt_cache_updated
7 changes: 2 additions & 5 deletions tasks/main2.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
- name: Update apt cache
apt:
update_cache: true
register: noobient_nginx_apt_updated
when: (ansible_pkg_mgr == 'apt') and (noobient_nginx_apt_updated is not defined)
- include_tasks: apt_cache.yml
when: ansible_pkg_mgr == 'apt' and noobient_apt_cache_updated is not defined

- include_tasks: wordpress.yml
when: (noobient_nginx_wp_installed is not defined) and (mode == 'wordpress')
Expand Down

0 comments on commit bb81c5f

Please sign in to comment.