Check if packagekit is installed
This commit is contained in:
parent
4210681d91
commit
17d132fd27
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,10 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: Check for packagekit.service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: /usr/lib/systemd/system/packagekit.service
|
||||||
|
register: packagekitservice
|
||||||
- name: Disable PackageKit
|
- name: Disable PackageKit
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
@ -20,6 +24,7 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
state: stopped
|
state: stopped
|
||||||
|
- when: packagekitservice.stat.exists
|
||||||
- name: Disable PackageKit offline updates
|
- name: Disable PackageKit offline updates
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
@ -27,6 +32,7 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
state: stopped
|
state: stopped
|
||||||
|
- when: packagekitservice.stat.exists
|
||||||
- name: Enable automatic updates
|
- name: Enable automatic updates
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|
Loading…
Reference in a new issue