We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This does not work (it will only honor the last ufw_rules block). Thus I just got locked out of a freshly provisioned server:
ufw_rules
--- - import_playbook: security.yml hostlist=redis - hosts: redis become: true become_user: root roles: # https://github.com/Oefenweb/ansible-ufw - role: ufw ufw_rules: - rule: allow to_port: 22 protocol: tcp comment: ssh tasks: - name: loop over ufw include_role: name: ufw vars: ufw_rules: - rule: allow to_port: "{{ lookup('env', 'REDIS_PORT') }}" from_ip: "{{ item }}" protocol: tcp comment: "redis access from {{ item }}" with_items: "{{ groups['web'] + groups['api'] + groups['bull'] }}"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This does not work (it will only honor the last
ufw_rules
block). Thus I just got locked out of a freshly provisioned server:The text was updated successfully, but these errors were encountered: