Difference between revisions of "Update deprecated openssl library from source code"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
- name: Install and start as service sysstat for Ubuntu | - name: Install and start as service sysstat for Ubuntu | ||
[[block:]] | [[block:]] | ||
+ | - ansible.builtin.get_url: | ||
+ | [[url:]] http://example.com/path/file.conf | ||
+ | [[dest:]] /etc/foo.conf | ||
+ | [[mode:]] '0440' | ||
+ | |||
+ | |||
- [[package:]] | - [[package:]] | ||
name: [[sysstat]] | name: [[sysstat]] |
Revision as of 12:40, 5 February 2024
#!/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: - ansible.builtin.get_url: url: http://example.com/path/file.conf dest: /etc/foo.conf mode: '0440'
- 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'
Related
See also
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: