Skip to content

Commit

Permalink
Update best pracrtice in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto authored Apr 15, 2024
1 parent 5454657 commit e998f95
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,16 +425,25 @@ Install Galaxy as per the current production server best practices:
become: yes
# Install with:
# % ansible-galaxy install natefoo.postgresql_objects
- role: natefoo.postgresql_objects
- role: galaxyproject.postgresql_objects
become: yes
become_user: postgres
- role: galaxyproject.galaxy
handlers:
- name: Restart Galaxy
supervisorctl:
name: galaxy
state: restarted
listen: restart galaxy
- name: Galaxy gravity restart
command: "/usr/local/bin/galaxyctl graceful"
listen: "restart galaxy"
post_tasks:
- name: Get Galaxy service Status
ansible.builtin.systemd:
name: "galaxy.target"
check_mode: true
register: galaxy_status
- name: Galaxy gravity start
command: "/usr/local/bin/galaxyctl start"
when: "galaxy_status.status.ActiveState == 'inactive'"
```

License
Expand Down

0 comments on commit e998f95

Please sign in to comment.