This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/strawberry/tasks/main.yml

30 lines
868 B
YAML
Raw Normal View History

2022-12-20 16:38:13 +00:00
- name: Download PPA signing key
become: true
apt_key:
keyserver: keyserver.ubuntu.com
id: BE5ED0F9261CAAD9A1E5B1A4CD6289E999EA819D
keyring: /etc/apt/keyrings/strawberry.gpg
- name: Install PPA repository
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/strawberry.gpg] https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu {{ distribution_release }} main"
2022-12-20 16:38:13 +00:00
register: apt_repository
- name: Update APT cache
become: true
apt:
update_cache: true
when: apt_repository.changed
- name: Install Strawberry
become: true
apt:
name: strawberry
- name: Create configuration directory
file:
path: ~/.config/strawberry
recurse: true
state: directory
- name: Copy configuration file
template:
src: "{{ role_path }}/templates/strawberry.conf.j2"
2022-12-20 16:38:13 +00:00
dest: ~/.config/strawberry/strawberry.conf