---
# handlers file for bbaassssiiee.artifactory
- name: 'start artifactory'
  sudo: yes
  service: name=artifactory state=started
  tags:
    - init

- name: 'restart artifactory'
  sudo: yes
  service: name=artifactory state=restarted

---
# handlers file for bbaassssiiee.artifactory
- name: 'start artifactory'
  become: yes
  service: name=artifactory state=started
  tags:
    - init

- name: 'restart artifactory'
  become: yes
  service: name=artifactory state=restarted

Use 'become' instead of deprecated 'sudo'.
Use 'become' instead of deprecated 'sudo'.
