Insatll NGINX
$ ansible testserver -s -m apt -a name=nginx
OUTPUT:
testserver | SUCCESS => { "cache_update_time": 0, "cache_updated": false, "changed": true, "stderr": "", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libxslt1.1 nginx-common nginx-core\nSuggested packages:\n fcgiwrap nginx-doc\nThe following NEW packages will be installed:\n libxslt1.1 nginx nginx-common nginx-core\n0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 494 kB of archives.\nAfter this operation, 1795 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-common all 1.4.6-1ubuntu3.4 [18.3 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-core amd64 1.4.6-1ubuntu3.4 [325 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx all 1.4.6-1ubuntu3.4 [5616 B]\nFetched 494 kB in 3s (143 kB/s)\nSelecting previously unselected package libxslt1.1:amd64.\n(Reading database ... 62992 files and directories currently installed.)\nPreparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ...\nUnpacking libxslt1.1:amd64 (1.1.28-2build1) ...\nSelecting previously unselected package nginx-common.\nPreparing to unpack .../nginx-common_1.4.6-1ubuntu3.4_all.deb ...\nUnpacking nginx-common (1.4.6-1ubuntu3.4) ...\nSelecting previously unselected package nginx-core.\nPreparing to unpack .../nginx-core_1.4.6-1ubuntu3.4_amd64.deb ...\nUnpacking nginx-core (1.4.6-1ubuntu3.4) ...\nSelecting previously unselected package nginx.\nPreparing to unpack .../nginx_1.4.6-1ubuntu3.4_all.deb ...\nUnpacking nginx (1.4.6-1ubuntu3.4) ...\nProcessing triggers for ureadahead (0.100.0-16) ...\nProcessing triggers for ufw (0.34~rc-0ubuntu2) ...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up libxslt1.1:amd64 (1.1.28-2build1) ...\nSetting up nginx-common (1.4.6-1ubuntu3.4) ...\nProcessing triggers for ureadahead (0.100.0-16) ...\nProcessing triggers for ufw (0.34~rc-0ubuntu2) ...\nSetting up nginx-core (1.4.6-1ubuntu3.4) ...\nSetting up nginx (1.4.6-1ubuntu3.4) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6.7) ...\n", "stdout_lines": [ "Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", " libxslt1.1 nginx-common nginx-core", "Suggested packages:", " fcgiwrap nginx-doc", "The following NEW packages will be installed:", " libxslt1.1 nginx nginx-common nginx-core", "0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.", "Need to get 494 kB of archives.", "After this operation, 1795 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB]", "Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-common all 1.4.6-1ubuntu3.4 [18.3 kB]", "Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-core amd64 1.4.6-1ubuntu3.4 [325 kB]", "Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx all 1.4.6-1ubuntu3.4 [5616 B]", "Fetched 494 kB in 3s (143 kB/s)", "Selecting previously unselected package libxslt1.1:amd64.", "(Reading database ... 62992 files and directories currently installed.)", "Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ...", "Unpacking libxslt1.1:amd64 (1.1.28-2build1) ...", "Selecting previously unselected package nginx-common.", "Preparing to unpack .../nginx-common_1.4.6-1ubuntu3.4_all.deb ...", "Unpacking nginx-common (1.4.6-1ubuntu3.4) ...", "Selecting previously unselected package nginx-core.", "Preparing to unpack .../nginx-core_1.4.6-1ubuntu3.4_amd64.deb ...", "Unpacking nginx-core (1.4.6-1ubuntu3.4) ...", "Selecting previously unselected package nginx.", "Preparing to unpack .../nginx_1.4.6-1ubuntu3.4_all.deb ...", "Unpacking nginx (1.4.6-1ubuntu3.4) ...", "Processing triggers for ureadahead (0.100.0-16) ...", "Processing triggers for ufw (0.34~rc-0ubuntu2) ...", "Processing triggers for man-db (2.6.7.1-1ubuntu1) ...", "Setting up libxslt1.1:amd64 (1.1.28-2build1) ...", "Setting up nginx-common (1.4.6-1ubuntu3.4) ...", "Processing triggers for ureadahead (0.100.0-16) ...", "Processing triggers for ufw (0.34~rc-0ubuntu2) ...", "Setting up nginx-core (1.4.6-1ubuntu3.4) ...", "Setting up nginx (1.4.6-1ubuntu3.4) ...", "Processing triggers for libc-bin (2.19-0ubuntu6.7) ..." ] }