git remote ansible

How to get :

  • git remote rm origin
  • git remote add origin
    working in Ansible?

The git module does only checkout repositories.
would i lose Idempotency when i use the command module ?