Skip to content

Commit

Permalink
move chmod to molecule prepare.yml, update nginx handler
Browse files Browse the repository at this point in the history
  • Loading branch information
loraine-gueguen committed Aug 2, 2024
1 parent 8024a06 commit d124042
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
5 changes: 5 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@
dest: /tmp/
owner: root
mode: 0644
# https://github.com/geerlingguy/docker-ubuntu2004-ansible/issues/24
- name: Set right permissions for /tmp dir, needed for apt-get update used in role nginxinc.nginx
ansible.builtin.file:
path: /tmp
mode: '1777'
17 changes: 0 additions & 17 deletions tasks/install.dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,6 @@

# NGINX

- name: shell command
ansible.builtin.shell: chmod 1777 /tmp
- name: shell command
ansible.builtin.shell: apt-get update && apt-get -y install apt-transport-https ca-certificates gnupg gpg-agent
register: data
- name: print all returned values
debug:
msg: "{{ data }}"
- name: Install needed package to fix update_cache failure.
ansible.builtin.apt:
name:
- apt-transport-https
- ca-certificates
- gnupg
- gpg-agent
update_cache: true
state: latest
- name: Install Nginx
include_role:
name: nginxinc.nginx
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@
src: nginx_sequenceserver.conf.j2
dest: /etc/nginx/conf.d/sequenceserver.conf
mode: 0644
notify: "(Handler: All OSs) Reload NGINX"
notify: "(Handler) Start/reload NGINX"

0 comments on commit d124042

Please sign in to comment.