Merge "Use systemd module instead of shell"

This commit is contained in:
Jenkins 2017-01-23 05:09:55 +00:00 committed by Gerrit Code Review
commit e5d395c867
2 changed files with 3 additions and 7 deletions

View File

@ -13,15 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Reload systemd daemon
command: "systemctl daemon-reload"
notify:
- Restart ceilometer services
- name: Restart ceilometer services
service:
systemd:
name: "{{ item.0.service_name }}"
state: "restarted"
daemon_reload: yes
with_subelements:
- "{{ ceilometer_services }}"
- group

View File

@ -73,4 +73,4 @@
- group
when: inventory_hostname in groups[item.1]
notify:
- Reload systemd daemon
- Restart ceilometer services