diff --git a/hosts b/hosts index 1b8feec..b23fd91 100644 --- a/hosts +++ b/hosts @@ -1,83 +1 @@ -# list all of the raspberry PI devices in the network -# the host name on each will be set to the first column -# it can be 1-20 characters, letters, digits, and hyphens -# host1 ansible_host=1.2.3.4 site_clli=philpa17 -wes-host1 ansible_host=192.168.88.217 -wes-host2 ansible_host=192.168.88.240 -wes-host3 ansible_host=192.168.88.218 - -[ansible-host] -# there must only be one ansible-host. this is the device -# that will act as the configuration server -wes-host1 - -[update] -# machines for auto package update -# this allows for excluding certain -# machines from automatically updating -# installed packages - -[pi] -# include all Raspberry Pi devces here -wes-host1 -wes-host2 -wes-host3 - -# use variables for passwords -# currently not implemented -[pi:vars] -vncpassword=vncpass99 -pipassword=pipassword99 - -[samba-server] -# it is best to have only one samba-server host -wes-host1 - -[smbclient] -# it would probably be best to limit this to 10 clients -wes-host2 -wes-host3 - -[public] -# not currently used -# -[snmpd] -# installs SNMP daemon -# -[netflows] -# installs flow client -# -[facebook] -# devices can be set up for facebook, salesforce or youtube -# these are mutually exclusive and must be checked by you as there -# is no automated process for that -wes-host1 - -[salesforce] -# see comment for facebook -wes-host2 - -[youtube] -# see comment for facebook -wes-host3 - -[ftpclient] - -[sipclient] -# generates VoIP traffic, signaling and media -wes-host1 -wes-host3 - -[sipserver] -# there must only be one sipserver -wes-host2 - -[ntopng] -# hosts running ntop - -[ap] -# raspberry pi will act as an access point - needs "site_clli" set on host - -[tcgui] -# web based interface to tc on port 5000 for introducing latency, loss, jitter - +adc-01 ansible_host=192.168.1.79 diff --git a/roles/role-samba4-primary-ad-dc/tasks/ubuntu-2004-amd64.yml b/roles/role-samba4-primary-ad-dc/tasks/ubuntu-2004-amd64.yml index 272de5c..a3e22cf 100644 --- a/roles/role-samba4-primary-ad-dc/tasks/ubuntu-2004-amd64.yml +++ b/roles/role-samba4-primary-ad-dc/tasks/ubuntu-2004-amd64.yml @@ -92,7 +92,7 @@ - name: "Transfer adc/smb.conf.j2 to /etc/samba/smb.conf" template: - src: adc/smb.conf/j2 + src: "{{ role_path }}/templates/adc/smb.conf.j2" dest: /etc/samba/smb.conf - name: "Start domain provisioning" diff --git a/samba.yml b/samba.yml index fffc18b..22c0715 100644 --- a/samba.yml +++ b/samba.yml @@ -1,4 +1,4 @@ -- hosts: linux13 +- hosts: adc-01 become: true vars: @@ -8,23 +8,9 @@ smb_username : 'administrator' smb_password : 'Password123' smb_role : 'primary' - smb_dns_servers: '172.29.129.168' + smb_dns_servers: '192.168.1.79' smb_dns_forwarder: '8.8.8.8' roles: - role-samba4-primary-ad-dc -- hosts: linux14 - become: true - - vars: - # -- Custom settings: role-samba4-primary-ad-dc -- - smb_workgroup : 'VSRAPOC' - smb_realm : 'VSRAPOC.DSFINANCIAL.COMCAST.NET' - smb_username : 'administrator' - smb_password : 'Password123' - smb_dns_servers: '172.29.129.168' - - roles: - - role-samba4-ad-member -