--- # Install check-local utilitary - name: Package nagios-nrpe-plugin is intalled ansible.builtin.apt: name: nagios-nrpe-plugin - name: "Remount /usr if needed" ansible.builtin.include_role: name: remount-usr - name: Utilitary check-local is installed ansible.builtin.copy: src: check-local dest: /usr/local/bin/check-local mode: "0755" - name: Package bash-completion is installed ansible.builtin.apt: name: bash-completion - name: Directory /etc/bash_completion.d exists ansible.builtin.file: path: '/etc/bash_completion.d' state: directory mode: '0644' - name: Completion for utilitary check-local is installed ansible.builtin.copy: src: check-local_completion dest: /etc/bash_completion.d/check-local mode: "0755"