Skip to content

Commit 890b109

Browse files
committed
Fix su usage for alpine
Fixes all the tests
1 parent 7147ecb commit 890b109

File tree

24 files changed

+108
-0
lines changed

24 files changed

+108
-0
lines changed

docker/base/alpine-3/conf/provision/roles/webdevops-base/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- include: bootstrap/supervisor.yml
66
- include: bootstrap/syslog-ng.yml
77
- include: bootstrap/logrotate.yml
8+
- include: bootstrap/pam.yml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
- name: Ensure su execution [Alpine family]
4+
lineinfile:
5+
dest: "/etc/pam.d/su"
6+
line: "auth sufficient pam_rootok.so"
7+
create: yes
8+
when: ansible_os_family == "Alpine"

docker/base/centos-7/conf/provision/roles/webdevops-base/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- include: bootstrap/supervisor.yml
66
- include: bootstrap/syslog-ng.yml
77
- include: bootstrap/logrotate.yml
8+
- include: bootstrap/pam.yml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
- name: Ensure su execution [Alpine family]
4+
lineinfile:
5+
dest: "/etc/pam.d/su"
6+
line: "auth sufficient pam_rootok.so"
7+
create: yes
8+
when: ansible_os_family == "Alpine"

docker/base/debian-7/conf/provision/roles/webdevops-base/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- include: bootstrap/supervisor.yml
66
- include: bootstrap/syslog-ng.yml
77
- include: bootstrap/logrotate.yml
8+
- include: bootstrap/pam.yml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
- name: Ensure su execution [Alpine family]
4+
lineinfile:
5+
dest: "/etc/pam.d/su"
6+
line: "auth sufficient pam_rootok.so"
7+
create: yes
8+
when: ansible_os_family == "Alpine"

docker/base/debian-8/conf/provision/roles/webdevops-base/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- include: bootstrap/supervisor.yml
66
- include: bootstrap/syslog-ng.yml
77
- include: bootstrap/logrotate.yml
8+
- include: bootstrap/pam.yml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
- name: Ensure su execution [Alpine family]
4+
lineinfile:
5+
dest: "/etc/pam.d/su"
6+
line: "auth sufficient pam_rootok.so"
7+
create: yes
8+
when: ansible_os_family == "Alpine"

docker/base/debian-9/conf/provision/roles/webdevops-base/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- include: bootstrap/supervisor.yml
66
- include: bootstrap/syslog-ng.yml
77
- include: bootstrap/logrotate.yml
8+
- include: bootstrap/pam.yml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
- name: Ensure su execution [Alpine family]
4+
lineinfile:
5+
dest: "/etc/pam.d/su"
6+
line: "auth sufficient pam_rootok.so"
7+
create: yes
8+
when: ansible_os_family == "Alpine"

0 commit comments

Comments
 (0)