-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boostrap-os: use import_tasks instead of symlinks (#11508)
Working symlinks are dependant on git configuration (when using the playbook as a git repository, which is common), precisely `git config core.symlinks`. While this is enabled by default, some company policies will disable it. Instead, use import_tasks which should avoid that class of bugs.
- Loading branch information
Showing
5 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- name: Import Centos boostrap for openEuler | ||
import_tasks: centos.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- name: Import Opensuse bootstrap | ||
import_tasks: opensuse.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- name: Import Opensuse bootstrap | ||
import_tasks: opensuse.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |