Skip to content

Commit

Permalink
Merge pull request #35 from ltalirz/fix-pinning-issue
Browse files Browse the repository at this point in the history
pin versions before installing
  • Loading branch information
josegonzalez authored Jan 2, 2020
2 parents 48fceae + 973f1d8 commit 9fff88e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Supported Platforms

### sshcommand_version

- default: `0.8.0`
- default: `0.9.0`
- type: `version`
- description: The version of sshcommand to install

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dokku_vhost_enable: 'true'
dokku_web_config: 'false'
herokuish_version: 0.5.5
plugn_version: 0.3.2
sshcommand_version: 0.8.0
sshcommand_version: 0.9.0
20 changes: 10 additions & 10 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@
tags:
- dokku

- name: install dokku packages
apt:
name: "{{ item.key }}={{ item.value }}"
- name: pin dokku packages
copy:
dest: /etc/apt/preferences.d/ansible-hold-{{ item.key }}
content: |
Package: {{ item.key }}
Pin: version {{ item.value }}
Pin-Priority: 1001
with_dict:
plugn: "{{ plugn_version }}"
sshcommand: "{{ sshcommand_version }}"
Expand All @@ -113,13 +117,9 @@
- dokku
- dokku-install

- name: pin dokku packages
copy:
dest: /etc/apt/preferences.d/ansible-hold-{{ item.key }}
content: |
Package: {{ item.key }}
Pin: version {{ item.value }}
Pin-Priority: 1001
- name: install dokku packages
apt:
name: "{{ item.key }}={{ item.value }}"
with_dict:
plugn: "{{ plugn_version }}"
sshcommand: "{{ sshcommand_version }}"
Expand Down

0 comments on commit 9fff88e

Please sign in to comment.