WIP: CI Test install

This commit is contained in:
Nicolas Meienberger 2022-05-16 21:29:02 +02:00
parent 33760e69bb
commit 748611ed51
4 changed files with 16 additions and 11 deletions

View file

@ -52,14 +52,19 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create user and group
run: useradd -u 1000 test
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
# This is normally done in the start script but
# we need to do it here to cache the dependency
- name: Install ansible
run: pip install -r requirements.txt
- name: Run install script
run: sudo ./scripts/start.sh

View file

@ -4,4 +4,4 @@ packages:
- coreutils
- git
- docker
- openssh-server
- iptables

View file

@ -14,6 +14,10 @@
name: "{{ packages }}"
state: latest
- name: Upgrade packages
apt:
upgrade: yes
- name: Add user to root group
user:
name: "{{ username }}"
@ -26,11 +30,6 @@
line: "{{ username }} ALL=(ALL) NOPASSWD: ALL"
validate: "/usr/sbin/visudo -cf %s"
- name: Restart SSH daemon
service:
name: sshd
state: restarted
- name: Allow SSH in UFW
community.general.ufw:
rule: allow

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
ansible