Install and configure sysstat using Ansible
Jump to navigation
Jump to search
#!/usr/bin/env ansible-playbook - hosts: YOUR_HOSTNAME remote_user: YOUR_REMOTEUSER become: yes connection: ssh tasks: - name: Install and start as service sysstat for Ubuntu block: - package: name: sysstat state: present - lineinfile: path: /etc/default/sysstat state: present backrefs: yes regexp: '^ENABLED="false"' line: 'ENABLED="true"' - service: name: sysstat state: started enabled: yes when: ansible_distribution == 'Ubuntu'
Activities
See also
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: wikiversity
Advertising: