Merge pull request #231 from C0rn3j/archinstall
Add support for installing packages on Arch Linux
This commit is contained in:
commit
e8db6bb5c8
|
@ -3,12 +3,15 @@
|
||||||
- include_tasks: variables.yml
|
- include_tasks: variables.yml
|
||||||
|
|
||||||
# Setup/install tasks.
|
# Setup/install tasks.
|
||||||
- include_tasks: setup-RedHat.yml
|
- include_tasks: setup-Archlinux.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'Archlinux'
|
||||||
|
|
||||||
- include_tasks: setup-Debian.yml
|
- include_tasks: setup-Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
- include_tasks: setup-RedHat.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- include_tasks: initialize.yml
|
- include_tasks: initialize.yml
|
||||||
- include_tasks: configure.yml
|
- include_tasks: configure.yml
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
- name: Ensure PostgreSQL Python libraries are installed.
|
||||||
|
pacman:
|
||||||
|
name: "{{ postgresql_python_library }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure PostgreSQL packages are installed.
|
||||||
|
pacman:
|
||||||
|
name: "{{ postgresql_packages }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure all configured locales are present.
|
||||||
|
locale_gen: "name={{ item }} state=present"
|
||||||
|
with_items: "{{ postgresql_locales }}"
|
||||||
|
register: locale_gen_result
|
||||||
|
|
||||||
|
- name: Force-restart PostgreSQL after new locales are generated.
|
||||||
|
systemd:
|
||||||
|
name: "{{ postgresql_daemon }}"
|
||||||
|
state: restarted
|
||||||
|
when: locale_gen_result.changed
|
Loading…
Reference in New Issue