projects
/
ansible.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d281db9
)
check if we are on a supported distro
author
Ralf Jung
<post@ralfj.de>
Sat, 7 Apr 2018 18:20:06 +0000
(20:20 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sun, 8 Apr 2018 08:20:25 +0000
(10:20 +0200)
base.yml
patch
|
blob
|
history
diff --git
a/base.yml
b/base.yml
index 7f03b5b040f519b809d2c86517078097108b340f..2a7c8246c6b5e288584717dc9f29a5084b2ebd56 100644
(file)
--- a/
base.yml
+++ b/
base.yml
@@
-2,6
+2,9
@@
- hosts: all
tasks:
# packages
- hosts: all
tasks:
# packages
+ - name: check minimal system version
+ command: "false"
+ when: not (ansible_distribution == "Debian" and ansible_lsb.major_release|int >= 9)
- name: detect if we have backports in the sources.list
command: fgrep backports /etc/apt/sources.list
register: backports
- name: detect if we have backports in the sources.list
command: fgrep backports /etc/apt/sources.list
register: backports
@@
-11,7
+14,7
@@
when: backports.rc != 0
- name: get rid of packages we do not want
apt: name=exim4-base,rpcbind state=absent autoremove=yes
when: backports.rc != 0
- name: get rid of packages we do not want
apt: name=exim4-base,rpcbind state=absent autoremove=yes
- - name: install
latest version of some packages, coming from backports if possible
+ - name: install
needrestart, git
apt: name=needrestart,git state=latest default_release={{ansible_distribution_release}}-backports
# server-scripts
- name: clone server-scripts git repository
apt: name=needrestart,git state=latest default_release={{ansible_distribution_release}}-backports
# server-scripts
- name: clone server-scripts git repository