This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/common/tasks/main.yml

18 lines
422 B
YAML
Raw Normal View History

2022-12-20 16:02:09 +00:00
- name: APT upgrade
apt:
autoremove: true
upgrade: yes
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
2023-01-07 19:32:42 +00:00
- name: Create base service directory
2022-12-03 12:05:55 +00:00
file:
2023-01-07 19:32:42 +00:00
path: "{{ base_service_dir }}"
2022-12-03 12:05:55 +00:00
state: directory
- name: Delete externally managed environment file
shell:
cmd: "rm /usr/lib/python*/EXTERNALLY-MANAGED"
register: rm
changed_when: "rm.rc == 0"
failed_when: "false"