forked from SSSD/sssd-ci-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: do not switch user to run task
This is not necessary since all commands in container are executed as the default user which is root alread. This should also fix this issue: containers/ansible-podman-collections#389 Since the code in ansible is hit only when become is used.
- Loading branch information
Showing
11 changed files
with
0 additions
and
62 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 |
---|---|---|
@@ -1,46 +1,37 @@ | ||
- name: Minimize IPA service container | ||
become: True | ||
block: | ||
- name: Stop IPA service | ||
become: True | ||
service: | ||
name: ipa.service | ||
state: stopped | ||
|
||
- name: Remove 389ds database to make image smaller | ||
become: True | ||
shell: rm -f /var/lib/dirsrv/slapd-IPA-TEST/db/__db.* | ||
args: | ||
warn: False | ||
when: inventory_hostname == 'ipa' | ||
|
||
- name: Minimize LDAP service container | ||
become: True | ||
block: | ||
- name: Stop directory service | ||
become: True | ||
service: | ||
name: [email protected] | ||
state: stopped | ||
|
||
- name: Remove 389ds database to make image smaller | ||
become: True | ||
shell: rm -f /var/lib/dirsrv/slapd-localhost/db/__db.* | ||
args: | ||
warn: False | ||
when: inventory_hostname == 'ldap' | ||
|
||
- name: Minimize client service container | ||
become: True | ||
block: | ||
- name: Stop SSSD service | ||
become: True | ||
service: | ||
name: sssd.service | ||
state: stopped | ||
|
||
- name: Remove SSSD's database and logs | ||
become: True | ||
shell: rm -f /var/lib/sss/db/* /var/lib/sss/mc/* /var/log/sssd/* | ||
args: | ||
warn: False | ||
|
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 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 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
Oops, something went wrong.