ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
---

- name: "[Alpine] Install package: php7 php7-fpm" 
  apk:
    name: "php7 php7-fpm"
    state: present
  when:
    - ansible_distribution == "Alpine"
    - services.php_fpm.version is not defined or services.php_fpm.version == 7

- name: "[Alpine] Install package: php8 php8-fpm" 
  apk:
    name: "php8 php8-fpm"
    state: present
  when:
    - ansible_distribution == "Alpine"
    - services.php_fpm.version == 8


- name: "[Archlinux] Install package: php7 php7-fpm" 
  pacman:
    name:
      - "php7"
      - "php7-fpm"
    state: present
  when:
    - ansible_distribution == "Archlinux"
    - services.php_fpm.version is not defined or services.php_fpm.version == 7

- name: "[Archlinux] Install package: php php-fpm" 
  pacman:
    name:
      - "php"
      - "php-fpm"
    state: present
  when:
    - ansible_distribution == "Archlinux"
    - services.php_fpm.version == 8