Skip to content

Force Join using ansible. #31

Open
@Ansible-NOOB

Description

@Ansible-NOOB

Is there a way to force rejoin to a domain where the computer object is still in the domain.

As in MCU I could use the -f option but everything I try in Ansible seems to fail.

Example of my playbook with the variables I thought would work but always fail.


  • hosts: all
    gather_facts: false

    The variables you would most likely want/need to override have been included

    vars:

    Active Directory

    client_join_state: joined
    client_join_extra_args: -f
    client_domain: MYDOMAIN
    client_username: MYUSERNAME
    client_password: MYPASSWORD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions