ubuntu20.04
This commit is contained in:
parent
2e97d95cdf
commit
d3a318adab
@ -25,6 +25,20 @@
|
|||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
|
|
||||||
|
- name: remove ubuntu cloud init, etc.
|
||||||
|
tags: apt
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- cloud-init
|
||||||
|
- cloud-guest-utils
|
||||||
|
- cloud-initramfs-dyn-netconf
|
||||||
|
- cloud-initramfs-copymods
|
||||||
|
- netplan.io
|
||||||
|
state: absent
|
||||||
|
purge: yes
|
||||||
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
|
||||||
- name: apt sources.list jessie
|
- name: apt sources.list jessie
|
||||||
tags: apt
|
tags: apt
|
||||||
copy:
|
copy:
|
||||||
@ -58,8 +72,7 @@
|
|||||||
src: sources.list.bullseye
|
src: sources.list.bullseye
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11)
|
||||||
- ansible_distribution_major_version == "11"
|
|
||||||
|
|
||||||
- name: apt.conf allow unauthenticated jessie
|
- name: apt.conf allow unauthenticated jessie
|
||||||
tags: apt
|
tags: apt
|
||||||
@ -102,9 +115,7 @@
|
|||||||
- name: install common packages for all opsys versions
|
- name: install common packages for all opsys versions
|
||||||
tags: apt
|
tags: apt
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- bind9-host
|
- bind9-host
|
||||||
- bzip2
|
- bzip2
|
||||||
- curl
|
- curl
|
||||||
@ -145,14 +156,15 @@
|
|||||||
- libjson-perl
|
- libjson-perl
|
||||||
- net-tools
|
- net-tools
|
||||||
- man
|
- man
|
||||||
|
- ifupdown
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: install packages for debian buster and older
|
- name: install packages for debian buster and older
|
||||||
tags: apt
|
tags: apt
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- dnsutils
|
- dnsutils
|
||||||
|
state: present
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- ansible_distribution_major_version|int() <= 10
|
- ansible_distribution_major_version|int() <= 10
|
||||||
@ -160,13 +172,12 @@
|
|||||||
- name: install packages for debian bullseye and newer
|
- name: install packages for debian bullseye and newer
|
||||||
tags: apt
|
tags: apt
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- bind9-utils
|
- bind9-utils
|
||||||
|
state: present
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11) or
|
||||||
- ansible_distribution_major_version|int() <= 11
|
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20)
|
||||||
|
|
||||||
- name: open-vm-tools
|
- name: open-vm-tools
|
||||||
apt:
|
apt:
|
||||||
@ -192,8 +203,7 @@
|
|||||||
authorized_key:
|
authorized_key:
|
||||||
user: root
|
user: root
|
||||||
state: absent
|
state: absent
|
||||||
key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWZi5nTI6zo3+cgGx5l163pEQXJ3aUyerqbHfQl9p8aB2bbe+vQl+Uc2Vrv8fvytAZizjPIIYdW5RqFAXrbNP+OpyFAONNZpX0omB8HLoHzOnmWpaCjMZp9XAdvWPknWFWWkwR5G5rbP5+dKeREzl4cAvW4GauEjaK4kUJF3K2HumVF6U3bzyDwnI+7h0zEbHddSOwAP1Opzla+WSdF+ZsiMdcVZE/mFxzd8sv1ZoO36sVZ1vItEAcols4qEAfwW8Gk/UjXI1XFRD1UrksAUxAc4ypu5oBVWtjMa429ZrCRbH2iU+TPbuUSXHJQMgTqsUgHrS9XkuS3EdbPA/aDMD1jhoYz2zyfAoCGdEBOuATlaoCOpOeSc9XIsasdVNwvtX2LCTlQe+LLOQzKiLaHEr/QmnLs8es8b68wtDlFIA2QAXYIfs8l+gBv3t3BIw7VPbMe8nb6hbTHFObDlVCyvXO2/6ZkOfRMgswFsQnGAqciowPxsjVer+I5hEBCMHgb6pxcUECxcxsc9P/w/z9LxGts9Ozyq55jzWMwvnFdarkzpMfWtt3QX7XG5B8OD4ghuMkX60GgvT7v1E7yTI/JtwXrsAc6jl1Qo4+TDdEYuBXe/LqyQzQ7GD1OoGRHIKCWyAQ9JiHcbUYX9p+vafXf0l1jelSg3O+cU+q+oZdGP178w== root@kavics'
|
key: "{{ mgmt_ssh_key }}"
|
||||||
# XXX
|
|
||||||
|
|
||||||
- name: copy pf6 package
|
- name: copy pf6 package
|
||||||
tags: pf6
|
tags: pf6
|
||||||
@ -234,8 +244,16 @@
|
|||||||
src: default_grub.patch.stretch
|
src: default_grub.patch.stretch
|
||||||
dest: /etc/default/grub
|
dest: /etc/default/grub
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 9)
|
||||||
- ansible_distribution_major_version|int() >= 9
|
|
||||||
|
- name: grub defaults, stretch+
|
||||||
|
tags: grub
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/default/grub
|
||||||
|
regexp: "^GRUB_CMDLINE_LINUX="
|
||||||
|
line: 'GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"'
|
||||||
|
when:
|
||||||
|
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20)
|
||||||
|
|
||||||
- name: update-grub
|
- name: update-grub
|
||||||
tags: grub
|
tags: grub
|
||||||
@ -275,8 +293,8 @@
|
|||||||
regexp: "noquery limited"
|
regexp: "noquery limited"
|
||||||
replace: "noquery"
|
replace: "noquery"
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 9) or
|
||||||
- ansible_distribution_major_version|int() >= 9
|
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20)
|
||||||
|
|
||||||
|
|
||||||
- name: postfix master.cf jessie
|
- name: postfix master.cf jessie
|
||||||
@ -304,16 +322,23 @@
|
|||||||
src: postfix_master.cf.patch.bullseye
|
src: postfix_master.cf.patch.bullseye
|
||||||
dest: /etc/postfix/master.cf
|
dest: /etc/postfix/master.cf
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11)
|
||||||
- ansible_distribution_major_version|int() == 11
|
|
||||||
|
|
||||||
- name: postfix relay
|
- name: postfix master.cf ubuntu 20.04
|
||||||
|
tags: postfix
|
||||||
|
patch:
|
||||||
|
src: postfix_master.cf.patch.ubuntu20.04
|
||||||
|
dest: /etc/postfix/master.cf
|
||||||
|
when:
|
||||||
|
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20)
|
||||||
|
|
||||||
|
- name: postfix relayhost
|
||||||
tags: postfix
|
tags: postfix
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/postfix/main.cf
|
dest: /etc/postfix/main.cf
|
||||||
regexp: '^relayhost\s'
|
regexp: '^relayhost\s'
|
||||||
line: "relayhost = mail-out.i.hwstudio.hu"
|
line: "relayhost = {{ postfix_relayhost }}"
|
||||||
# XXX
|
when: postfix_relayhost is defined
|
||||||
|
|
||||||
- name: pvresize /dev/sdb
|
- name: pvresize /dev/sdb
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user