Skip to content

Commit

Permalink
chore(osm2pgsql): Ensure account using meta, adding variable configur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
lafeychine authored and jocelynj committed Nov 7, 2023
1 parent 8c72808 commit 641d31e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion .config/ansible-lint-ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ live.yml name[casing]
munin-server.yml name[casing]
nextcloud.yml name[casing]
ocitysmap.yml name[casing]
osm2pgsql.yml name[casing]
osmbin.yml name[casing]
osmose-backend.yml name[casing]
osmose-frontend.yml name[casing]
Expand Down
7 changes: 1 addition & 6 deletions osm2pgsql.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
- name: osm2pgsql configuration
- name: Configure osm2pgsql
hosts: osm2pgsql
gather_facts: no
become: yes
roles:
- accounts
- osm2pgsql
vars:
accounts__users:
osm2pgsql:
service: true
3 changes: 3 additions & 0 deletions roles/osm2pgsql/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
osm2pgsql__user: osm2pgsql
...
8 changes: 8 additions & 0 deletions roles/osm2pgsql/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
dependencies:
- role: accounts
vars:
accounts__users:
"{{ osm2pgsql__user }}":
service: true
...

0 comments on commit 641d31e

Please sign in to comment.