-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from C0rn3j/archinstall
Add support for installing packages on Arch Linux
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |