Use the .yaml file extension for all YAML files
This commit is contained in:
parent
9d0697f0d0
commit
1bcb77961b
60 changed files with 1 additions and 1 deletions
38
playbooks/roles/foobazdmx/tasks/main.yaml
Normal file
38
playbooks/roles/foobazdmx/tasks/main.yaml
Normal file
|
@ -0,0 +1,38 @@
|
|||
- name: Ensure apt dependencies are installed
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- acl
|
||||
- git
|
||||
- python3
|
||||
- python3-pip
|
||||
- python3-setuptools
|
||||
- name: Ensure python peotry is installed
|
||||
ansible.builtin.pip:
|
||||
name: poetry
|
||||
- name: Ensure foobazdmx user exists
|
||||
ansible.builtin.user:
|
||||
name: foobazdmx
|
||||
- name: Install foobazdmx
|
||||
notify: Restart foobazdmx
|
||||
block:
|
||||
- name: Clone foobazdmx repository
|
||||
ansible.builtin.git:
|
||||
repo: https://thinkcccentre-ansible:glpat-VegCzyjuDjB19SggAqm1@gitlab.hamburg.ccc.de/yuri/foobazdmx.git
|
||||
dest: /opt/foobazdmx
|
||||
version: bf6170aa12fa5de9b9667be9b744ad7ee6157dde
|
||||
- name: Install python dependencies
|
||||
become_user: foobazdmx
|
||||
ansible.builtin.command:
|
||||
cmd: poetry install
|
||||
chdir: /opt/foobazdmx
|
||||
changed_when: false
|
||||
- name: Generate foobazdmx service file
|
||||
ansible.builtin.template:
|
||||
src: foobazdmx.service.j2
|
||||
dest: /etc/systemd/system/foobazdmx.service
|
||||
mode: "0755"
|
||||
- name: Enable and start foobazdmx service
|
||||
ansible.builtin.systemd:
|
||||
service: foobazdmx.service
|
||||
state: started
|
||||
enabled: true
|
Loading…
Add table
Add a link
Reference in a new issue