Newer
Older
when: sd_uninstallv1
api_token={{ sd_api_token }}
cleanup={{ sd_alert_cleanup }}
force={{ sd_force_update }}
- name: "ServerDensity | Add ServerDensity Repository To Apt"
content='deb http://archive.serverdensity.com/ubuntu/ all main'
apt:
pkg=sd-agent
state=installed
update_cache=yes
src={{ sd_plugins_files_dir }}/{{ item }}
dest={{ sd_agent_plugins_dir }}/{{ item }}
with_items: sd_plugins
notify: "ServerDensity | Restart Agent"
- name: "ServerDensity | Configure The Agent"
template:
src={{ item }}
dest=/etc/sd-agent/{{ item }}
with_items:
- 'config.cfg'
- 'plugins.cfg'
#- 'supervisor.conf'
- include: apache.yml
when: sd_groups.apache != 'none' and inventory_hostname in groups[sd_groups.apache]
- include: mysql.yml
when: sd_groups.mysql != 'none' and inventory_hostname in groups[sd_groups.mysql]