Open jtagcat opened 2 weeks ago
- name: Enable nginx community.general.sysrc: name: nginx_enable value: "YES"
^ Example does not ensure the service is started. I'd like to see nginx as the name, which both enables and (re)starts the service.
nginx
Feature Idea
sysrc
Alternative:
- name: 'nginx: ensure pkg' community.general.pkgng: name: nginx state: latest - name: 'nginx: enable service' community.general.sysrc: name: nginx_enable value: "YES" - name: 'nginx: start service' shell: service nginx start register: result changed_when: "result.rc == 0" failed_when: 'result.rc != 0 and (result.rc == 1 and not "already running" in result.stderr)'
Files identified in the description:
plugins/modules/sysrc.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
cc @dlundgren click here for bot help
Summary
^ Example does not ensure the service is started. I'd like to see
nginx
as the name, which both enables and (re)starts the service.Issue Type
Feature Idea
Component Name
sysrc
Additional Information
Alternative:
Code of Conduct