diff options
author | heqnx <root@heqnx.com> | 2025-07-12 12:00:33 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-12 12:00:33 +0300 |
commit | c8a6c4f60ed36e6d29461599695baa779aff4948 (patch) | |
tree | a6d4fc79e38067ea14c768c913ca1e22e3478865 /ansible/roles/srv01/tasks/main.yaml | |
parent | 6ec2eb61a02f9e55ef5b8d22a5ca61ca53ca05e7 (diff) | |
download | ansible-active-directory-range-c8a6c4f60ed36e6d29461599695baa779aff4948.tar.gz ansible-active-directory-range-c8a6c4f60ed36e6d29461599695baa779aff4948.zip |
adding a linux domain joined server
Diffstat (limited to 'ansible/roles/srv01/tasks/main.yaml')
-rw-r--r-- | ansible/roles/srv01/tasks/main.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/srv01/tasks/main.yaml b/ansible/roles/srv01/tasks/main.yaml new file mode 100644 index 0000000..06f6974 --- /dev/null +++ b/ansible/roles/srv01/tasks/main.yaml @@ -0,0 +1,14 @@ +- name: wait for ssh to be available + ansible.builtin.wait_for: + host: "{{ ansible_host }}" + port: "{{ ansible_port }}" + timeout: 300 + delegate_to: localhost + vars: + ansible_connection: local + +- name: set hostname + import_tasks: set_hostname.yaml + +- name: execute join-domain.sh + import_tasks: join_domain.yaml |