mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Rename bootstrap-os to bootstrap_os
Role names in ansible collections should not have hyphens.
This commit is contained in:
21
roles/bootstrap_os/tasks/ubuntu.yml
Normal file
21
roles/bootstrap_os/tasks/ubuntu.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: Import Debian bootstrap
|
||||
import_tasks: debian.yml
|
||||
|
||||
- name: Check unattended-upgrades file exist
|
||||
stat:
|
||||
path: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||
register: unattended_upgrades_file_stat
|
||||
when:
|
||||
- ubuntu_kernel_unattended_upgrades_disabled
|
||||
|
||||
- name: Disable kernel unattended-upgrades
|
||||
lineinfile:
|
||||
path: "{{ unattended_upgrades_file_stat.stat.path }}"
|
||||
insertafter: "Unattended-Upgrade::Package-Blacklist"
|
||||
line: '"linux-";'
|
||||
state: present
|
||||
become: true
|
||||
when:
|
||||
- ubuntu_kernel_unattended_upgrades_disabled
|
||||
- unattended_upgrades_file_stat.stat.exists
|
||||
Reference in New Issue
Block a user