29 lines
876 B
YAML
29 lines
876 B
YAML
- 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 {{ ansible_distribution_release }} 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
|