I am getting the below error {"changed": false, "msg": "'/usr/bin/apt-mark man . . .

Alok Kumar:
I am getting the below error

{“changed”: false, “msg”: “‘/usr/bin/apt-mark manual sudo’ failed: E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n”, “rc”: 100, “stderr”: “E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n”, “stderr_lines”: [“E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)”, “E: Failed to write temporary StateFile /var/lib/apt/extended_states”], “stdout”: “”, “stdout_lines”: []}

Al West:
You need to become root using:

become: yes

Alok Kumar:
Yeah thanks I implemented and it worked