Browse Source

Exclude require statement when install_packages is False.

The 'require' statement needs a list as input, but doesn't get
any input when install_packages is set to False.
master
Simon Lloyd 9 years ago
parent
commit
462455ead9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      salt/ssh.sls

+ 1
- 1
salt/ssh.sls View File

- name: {{ salt_settings.config_path }}/roster - name: {{ salt_settings.config_path }}/roster
- source: salt://salt/files/roster.jinja - source: salt://salt/files/roster.jinja
- template: jinja - template: jinja
- require:
{% if salt_settings.install_packages %} {% if salt_settings.install_packages %}
- require:
- pkg: ensure salt-ssh is installed - pkg: ensure salt-ssh is installed
{% endif %} {% endif %}

Loading…
Cancel
Save