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
2023-06-12 00:17:10 +02:00

29 lines
857 B
YAML

- name: Download PPA signing key
become: true
apt_key:
keyserver: keyserver.ubuntu.com
id: BE5ED0F9261CAAD9A1E5B1A4CD6289E999EA819D
keyring: /etc/apt/trusted.gpg.d/strawberry.gpg
- name: Install PPA repository
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/strawberry.gpg] https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu lunar main"
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"
dest: ~/.config/strawberry/strawberry.conf