Skip to content

LINT Solution

Terminal window
---
- name: Name of this play
hosts: all
gather_facts: true
tasks:
- name: This would typically fire deprecated-command-syntax
ansible.builtin.file:
path: fic
mode: "u=rw,g=r,o=r"
- name: Git checkout
ansible.builtin.git:
repo: 'https://github.com/ansible/awx.git'
dest: /srv/checkout
version: release-0.22
- name: Run apt-get update
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
force_apt_get: true
failed_when:
- result.rc == 0