]> git.phdru.name Git - ansible.git/commitdiff
Feat(apt): Add option `cache_valid_time: 3600`
authorOleg Broytman <phd@phdru.name>
Thu, 29 Aug 2019 17:52:31 +0000 (20:52 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 29 Aug 2019 17:52:31 +0000 (20:52 +0300)
Avoid unnecessary updates.

13 files changed:
playbooks/debian/init-local-phd.yml
playbooks/debian/roles/apache/tasks/main.yml
playbooks/debian/roles/dehydrated/tasks/main.yml
playbooks/debian/roles/dev-packages/tasks/main.yml
playbooks/debian/roles/firewall/tasks/main.yml
playbooks/debian/roles/init-system/tasks/apt.yml
playbooks/debian/roles/init-system/tasks/python.yml
playbooks/debian/roles/logcheck/tasks/main.yml
playbooks/debian/roles/named/tasks/main.yml
playbooks/debian/roles/packages/tasks/main.yml
playbooks/debian/roles/remove-systemd/tasks/main.yml
playbooks/debian/roles/sudo/tasks/main.yml
playbooks/debian/update-all-apt.yml

index f43b7d83e697d8643c24b46b42e2c86d9ea0d415..1c1f89fecfe3e67b79cd0ce3120433f2d407cdf5 100644 (file)
@@ -24,6 +24,7 @@
       apt:
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
         name: ['fvwm', 'rxvt-unicode', 'xorg']
         state: latest
index e893ce471a472407b83f54aed015b3a88b23928b..0d81b0aeed4a9789a1bb47772799a4059a331acf 100644 (file)
@@ -14,6 +14,7 @@
       apt:
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
         name: apache2
         state: latest
index 0b7ae4d9901c72c960c72a1e9614cc2f3e7c69d3..d6d7ed815ac28cc8cefe2263bf4e0571718cfbef 100644 (file)
@@ -12,6 +12,7 @@
         module: apt
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
         name: git
         state: latest
index 852de9791935c0855c349ca2dfd871d033efec8d..ed96abf7b30f532505484bb11875912b96fd7488 100644 (file)
@@ -3,6 +3,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: ['gcc', 'g++', 'git', 'make',
           ]
index ed406eeaf157c6b6a08025f26778594c0418d7d4..9716ddab6f34bb88175a00be0729b2b6c8d61ddc 100644 (file)
@@ -1,6 +1,7 @@
 - name: Install fail2ban
   become: true
   apt:
+    cache_valid_time: 3600
     install_recommends: no
     name: fail2ban
     state: latest
index 21732299efd3094fa2811374d620d24a12930c47..2980427aa38dd546db2b9d23d7240dd4c62fa513 100644 (file)
@@ -37,6 +37,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: ['avahi-autoip', 'bluetooth', 'bluez',
            'debian-faq', 'doc-debian',
index e2667e165c30dc8a2190ea305fe99c523ec168d8..ead9aa5ee235fe4bd64b104eaf1c254296939152 100644 (file)
@@ -3,6 +3,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
            'python-setuptools', 'python3-setuptools',
index e11edf71a28e67b14fcedfe8f3734e9b66c5ec42..fa8c6d4a17b3ea4daacc5896a0f2ceb9b344e792 100644 (file)
@@ -3,6 +3,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: logcheck
     state: latest
index f0410a93a83b532dcc27492e108778a481e2c66c..3a70042c033fe8098695852692f3227fa05d7642 100644 (file)
@@ -14,6 +14,7 @@
       apt:
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
         name: bind9
         state: latest
index 53f8c526a9b9bb51dcbb0d887b3849c811c4aaa6..5d3aeb105352f377548aa44964a9cd2844bd4565 100644 (file)
@@ -3,6 +3,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: ['adjtimex', 'arj', 'bsd-mailx', 'elinks', 'fetchmail', 'links2',
            'lzip', 'lzma', 'lzop', 'p7zip', 'xz-utils',
index 109694e093353b21e1770bc8d1ed8be4272d5957..d8df2590ad76b81f5aa7e748e7597d94f9f716ad 100644 (file)
@@ -14,6 +14,7 @@
   apt:
     autoclean: yes
     autoremove: yes
+    cache_valid_time: 3600
     install_recommends: no
     name: ['sysvinit-core', 'sysvinit-utils']
     state: latest
index ea0377d1030c4da8970a333960923ecd36342b3f..97b9b2a6d41063bdc611c8436721785090a62087 100644 (file)
@@ -1,6 +1,7 @@
 - name: Install sudo
   become: true
   apt:
+    cache_valid_time: 3600
     install_recommends: no
     name: sudo
     state: latest
index ac2b31ed8392798e3579d6929fef7ee56b0051b8..580672c566ab57ea4cf2625e3bdcd193cf44c590 100644 (file)
@@ -7,6 +7,7 @@
       apt:
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
         name: "*"
         state: latest