Skip to content

Commit eed3d26

Browse files
committed
Enable community for Alpine and add shadow package.
1 parent 1a0e001 commit eed3d26

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you find issues, please register them in [GitHub](https://github.com/robertde
2626
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
2727
```
2828
pip install molecule
29-
molecule test --scenario-name fedora-latest
29+
molecule test
3030
```
3131
There are many scenarios available, please have a look in the `molecule/` directory.
3232

tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@
151151
setup:
152152
become: no
153153

154+
- name: add community repository for alpine
155+
lineinfile:
156+
path: /etc/apk/repositories
157+
line: http://dl-cdn.alpinelinux.org/alpine/v{{ ansible_distribution_version.split('.')[0] }}.{{ ansible_distribution_version.split('.')[1] }}/community
158+
when:
159+
- ansible_distribution == "Alpine"
160+
154161
- name: install bootstrap packages
155162
package:
156163
name: "{{ bootstrap_packages[ansible_distribution]

vars/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ bootstrap_packages:
1919
default:
2020
- python
2121
- sudo
22+
Alpine:
23+
- python
24+
- sudo
25+
- shadow
2226
CentOS:
2327
- python2
2428
- sudo

0 commit comments

Comments
 (0)