Hi@akhtar,
You can use the file module in Ansible. This module has an argument named mode. There you can pass your requirement. You can also take help from the below-given code.
- name: Changing perm of "/etc/rc.d/rc.local", adding "+x"
file:
dest: /etc/rc.d/rc.local
mode: a+x