generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ostree support, simplify tests, lint issues
Add support for ostree systems. Simplify tests by adding setup and cleanup task files. Fix some lint, good practices issues
- Loading branch information
Showing
19 changed files
with
235 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sudo |
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 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 @@ | ||
--- | ||
collections: | ||
- name: ansible.posix |
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 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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Restore sudoers | ||
copy: | ||
src: "{{ __sudo_tmpdir.path }}/sudoers" | ||
dest: /etc/sudoers | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
remote_src: true | ||
|
||
- name: Restore sudoers.d | ||
copy: | ||
src: "{{ __sudo_tmpdir.path }}/sudoers.d" | ||
dest: /etc/sudoers.d | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
remote_src: true | ||
|
||
- name: Clean up temp directory | ||
file: | ||
path: "{{ __sudo_tmpdir.path }}" | ||
state: absent |
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,26 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Create temp test directory | ||
tempfile: | ||
path: /var/tmp | ||
prefix: sudo_ | ||
state: directory | ||
register: __sudo_tmpdir | ||
|
||
- name: Backup sudoers | ||
copy: | ||
src: /etc/sudoers | ||
dest: "{{ __sudo_tmpdir.path }}/sudoers" | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
remote_src: true | ||
|
||
- name: Backup sudoers.d | ||
copy: | ||
src: /etc/sudoers.d | ||
dest: "{{ __sudo_tmpdir.path }}/sudoers.d" | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
remote_src: true |
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
Oops, something went wrong.